.yc-license-block {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 10px auto;
  clear: both;
}

.yc-license-title {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 8px;
}

.yc-license-grid {
  --yc-license-gap: 10px;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--yc-license-gap);
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 6px;
  box-sizing: border-box;
  overflow: visible;
}

.yc-license-slot {
  position: relative;
  width: auto;
  max-width: var(--yc-seal-desktop-w, 110px);
  height: auto;
  aspect-ratio: var(--yc-seal-ratio-w, 110) / var(--yc-seal-ratio-h, 120);
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  contain: layout paint;
}

.yc-license-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.yc-license-fallback,
.yc-license-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.8;
  opacity: 0.9;
  overflow: hidden;
}

.yc-license-icon-link:hover,
.yc-license-fallback:hover {
  text-decoration: none;
  opacity: 1;
}

.yc-license-icon-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0;
}

.yc-license-mode-icon {
  background: transparent;
}

.yc-license-loading .yc-license-fallback,
.yc-license-loaded .yc-license-fallback {
  display: none;
}

.yc-license-loading::before {
  content: "در حال بارگذاری...";
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.8;
  opacity: 0.65;
  z-index: 0;
}

.yc-license-loading iframe {
  position: relative;
  z-index: 1;
}

.yc-license-failed {
  background: rgba(255, 255, 255, 0.10);
}

.yc-license-failed .yc-license-fallback {
  display: inline-flex;
}

@media (max-width: 575px) {
  .yc-license-block {
    margin: 8px auto;
  }

  .yc-license-grid {
    --yc-license-gap: clamp(4px, 1.6vw, 8px);
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }

  .yc-license-slot {
    max-width: var(--yc-seal-mobile-w, 95px);
    aspect-ratio: var(--yc-seal-mobile-ratio-w, 95) / var(--yc-seal-mobile-ratio-h, 105);
    border-radius: 9px;
  }
}

@media (max-width: 360px) {
  .yc-license-grid {
    --yc-license-gap: 4px;
    padding: 0 3px;
  }
}
