/* المنتج 1576448913 */
#product-1576448913 #ad-sash-customizer {
  width: 100%; margin-bottom: 10px; color: #0f172a; direction: rtl;
  font-family: inherit; text-align: right;
}
#product-1576448913 #ad-sash-customizer *,
#product-1576448913 .ad-live-preview * { box-sizing: border-box; }
#product-1576448913 .ad-field-card,
#product-1576448913 salla-product-options .s-product-options-option-container {
  width: 100%; padding: 14px !important; margin: 0 0 10px !important;
  background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important; box-shadow: none !important; text-align: right;
}
#product-1576448913 #ad-sash-customizer [hidden],
#product-1576448913 salla-product-options .s-product-options-option-container.hidden,
#product-1576448913 salla-product-options .s-product-options-option-container[hidden] {
  display: none !important;
}
#product-1576448913 .ad-label,
#product-1576448913 salla-product-options .s-product-options-option-label {
  display: block !important; margin: 0 0 9px !important; color: #0f172a !important;
  font-size: 14px !important; font-weight: 700 !important; line-height: 1.7 !important;
}
#product-1576448913 .ad-label b { color: #ef4444; }
#product-1576448913 .ad-label small {
  color: #64748b; font-size: 11px; font-weight: 400;
}
#product-1576448913 .ad-help {
  color: #64748b; font-size: 11px; line-height: 1.7; margin: -4px 0 10px;
}
#product-1576448913 .ad-input,
#product-1576448913 salla-product-options input[type="text"],
#product-1576448913 salla-product-options textarea {
  display: block; width: 100% !important; min-height: 44px; margin: 0 !important;
  padding: 10px 12px !important; background: #fff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 12px !important; color: #0f172a !important; font: inherit;
  font-size: 13px !important; outline: none; box-shadow: none;
}
#product-1576448913 .ad-input:focus,
#product-1576448913 salla-product-options input[type="text"]:focus {
  border-color: #2563eb !important; box-shadow: 0 0 0 3px #2563eb1a !important;
}
#product-1576448913 .ad-error {
  display: block; color: #dc2626; font-size: 11px; margin-top: 5px;
}
#product-1576448913 .ad-error:empty { display: none; }
#product-1576448913 .ad-grid { display: grid; gap: 8px; }
#product-1576448913 .ad-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}
#product-1576448913 .ad-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#product-1576448913 :is(.ad-font-grid, .ad-university-grid) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#product-1576448913 .ad-choice {
  appearance: none; position: relative; display: flex;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 7px; width: 100%; min-width: 0;
  min-height: 44px; padding: 10px 7px;
  margin: 0; background: #fff; border: 1px solid #dbe2ea;
  border-radius: 12px;
  color: #0f172a; font: inherit; font-size: 11px;
  line-height: 1.6; text-align: center; cursor: pointer;
  box-shadow: none; transition: border-color .15s, background .15s;
}
#product-1576448913 .ad-choice:hover { border-color: #93b4ed; }
#product-1576448913 .ad-choice[aria-pressed="true"] {
  border-color: #2563eb; background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}
#product-1576448913 .ad-choice[aria-pressed="true"]::after,
#product-1576448913 salla-product-options .s-product-options-grid-mode > label:has(input:checked)::after {
  content: "✓"; position: absolute; top: 5px; right: 5px;
  width: 17px; height: 17px;
  display: grid; place-items: center;
  background: #2563eb; color: #fff; border-radius: 50%;
  font: 700 11px/1 Arial, sans-serif; pointer-events: none;
}
#product-1576448913 .ad-choice:focus-visible {
  outline: 2px solid #2563eb; outline-offset: 2px;
}
#product-1576448913 .ad-font-choice { min-height: 92px; }
#product-1576448913 .ad-font-sample {
  display: block; min-height: 38px; font-size: 34px;
  line-height: 1.3; font-synthesis: none;
}
#product-1576448913 .ad-font-monotype.ad-font-sample { font-size: 25px; }
#product-1576448913 .ad-font-calisto.ad-font-sample { font-size: 13px; }
#product-1576448913 .ad-color-choice {
  flex-direction: row; min-height: 48px;
}
#product-1576448913 .ad-color-dot {
  width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid #00000012;
}
#product-1576448913 .ad-uni-choice { min-height: 116px; }
#product-1576448913 .ad-uni-image {
  display: block; width: 66px; height: 66px; object-fit: contain;
}
#product-1576448913 .ad-no-logo {
  display: grid; place-items: center; width: 66px;
  height: 66px; font-size: 30px; color: #94a3b8;
}
#product-1576448913 .ad-design-choice { min-height: 130px; }
#product-1576448913 .ad-design-image {
  display: block; width: 100px; height: 100px;
  object-fit: contain; border-radius: 8px;
}

/* حقول سلة الأصلية */
#product-1576448913 salla-product-options salla-conditional-fields {
  display: flex; flex-direction: column;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] {
  order: -1;
  background: #fff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 18px #0f172a06 !important;
}
#product-1576448913:not([data-ad-sash-design="design-2"]) salla-product-options [data-option-id="971860831"] {
  display: none !important;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 10px !important;
}
#product-1576448913 salla-product-options .s-product-options-option {
  margin: 0 !important; padding: 0 !important;
}
#product-1576448913 salla-product-options .s-product-options-grid-mode {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important; width: 100% !important;
}
#product-1576448913 salla-product-options .s-product-options-grid-mode > label {
  position: relative !important; display: block !important;
  width: 100% !important;
  min-width: 0 !important; margin: 0 !important; cursor: pointer;
}
#product-1576448913 salla-product-options .s-product-options-grid-mode > label > input[type="radio"] {
  position: absolute !important; width: 1px !important;
  height: 1px !important;
  margin: 0 !important; opacity: 0 !important;
  overflow: hidden; clip-path: inset(50%);
}
#product-1576448913 salla-product-options .s-product-options-grid-mode-span {
  display: flex !important; align-items: center; justify-content: center;
  width: 100% !important;
  min-height: 48px; padding: 10px 23px !important; margin: 0 !important;
  background: #fff !important; border: 1px solid #dbe2ea !important;
  border-radius: 12px !important;
  color: #0f172a !important; font: inherit; font-size: 12px !important;
  line-height: 1.7 !important;
  text-align: center; box-shadow: none !important;
}
#product-1576448913 salla-product-options label:has(input:checked) > .s-product-options-grid-mode-span {
  background: #eff6ff !important; border-color: #2563eb !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}
#product-1576448913 salla-product-options label:has(input:focus-visible) > .s-product-options-grid-mode-span {
  outline: 2px solid #2563eb; outline-offset: 2px;
}

/* تنسيق مرتبة الشرف */
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label {
  display: flex !important;
  min-height: 84px;
  isolation: isolate;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode-span {
  box-sizing: border-box;
  height: 100%;
  min-height: 84px;
  justify-content: flex-start;
  padding: 12px 14px 12px 44px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.85 !important;
  text-align: right;
  direction: rtl;
  white-space: normal !important;
  overflow-wrap: break-word;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] label:has(input:checked) > .s-product-options-grid-mode-span {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label:has(input:checked)::before {
  border-color: #2563eb;
  background: #2563eb;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label:has(input:checked)::after {
  top: 50%;
  right: auto;
  left: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: transparent;
  z-index: 2;
}
#product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}
@media (hover: hover) {
  #product-1576448913 salla-product-options [data-option-id="971860831"] label:not(:has(input:disabled)):hover > .s-product-options-grid-mode-span {
    border-color: #93b4ed !important;
  }
}

/* المعاينة التفاعلية */
#product-1576448913 .ad-preview-host { position: relative !important; }
#product-1576448913 .ad-live-preview {
  --ad-thread-color: #CFCFCF;
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  background: #fff; visibility: hidden;
  overflow: hidden; pointer-events: none;
}
#product-1576448913 .ad-live-preview.is-ready { visibility: visible; }
#product-1576448913 .ad-preview-scene {
  position: absolute; left: 50%; top: 50%;
  width: var(--ad-scene-size, 100%);
  height: var(--ad-scene-size, 100%);
  transform: translate(-50%, -50%); direction: ltr;
}
#product-1576448913 .ad-preview-base {
  position: absolute; inset: 0; width: 100%;
  height: 100%; object-fit: contain;
}
#product-1576448913 .ad-preview-stage {
  position: relative; width: 100%; aspect-ratio: 1;
  overflow: hidden; background: #fff; border-radius: 12px;
}
#product-1576448913 .ad-preview-text {
  position: absolute; z-index: 5; color: var(--ad-thread-color);
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.15; opacity: 0; transform-origin: center;
  font-synthesis: none;
}
#product-1576448913 .ad-live-preview .is-visible { opacity: 1; }
#product-1576448913 .ad-live-preview[data-design="design-1"] .ad-preview-name {
  left: 6.8%; top: 50%; width: 46%; height: 12%;
  transform: rotate(-92deg);
}
#product-1576448913 .ad-live-preview[data-design="design-1"] .ad-preview-honor {
  display: none;
}
#product-1576448913 .ad-live-preview[data-design="design-2"] .ad-preview-name {
  left: 7.6%; top: 43%; width: 44%; height: 12%;
  transform: rotate(-92deg);
}
#product-1576448913 .ad-preview-major {
  left: 46.3%; top: 37%; width: 42%; height: 12%;
  transform: rotate(-86deg);
}
#product-1576448913 .ad-preview-honor {
  left: 21.6%; top: 74.5%; width: 18%; height: 11%;
  white-space: normal;
}
#product-1576448913 .ad-preview-logo {
  position: absolute; left: 58.5%; top: 63%;
  width: 14%; height: 14%; z-index: 5; opacity: 0;
  background: var(--ad-thread-color);
  -webkit-mask: var(--ad-logo) center / contain no-repeat;
  mask: var(--ad-logo) center / contain no-repeat;
}
#product-1576448913 .ad-preview-year {
  left: 57.9%; top: 76.75%; width: 14%; height: 6.5%;
  font-family: "AD Sash Calisto", Arial, sans-serif !important;
}
#product-1576448913 .ad-font-thuluth {
  --ad-font: "AD Sash Thuluth", "Noto Naskh Arabic", Amiri, Arial, sans-serif;
}
#product-1576448913 .ad-font-thuluth2 {
  --ad-font: "AD Sash Thuluth II", "Noto Naskh Arabic", Amiri, Arial, sans-serif;
}
#product-1576448913 .ad-font-diwani {
  --ad-font: "AD Sash Diwani", "Noto Naskh Arabic", Amiri, Arial, sans-serif;
}
#product-1576448913 .ad-font-monotype {
  --ad-font: "AD Sash Monotype", "Noto Naskh Arabic", Amiri, Arial, sans-serif;
}
#product-1576448913 .ad-font-calisto {
  --ad-font: "AD Sash Calisto", "Noto Naskh Arabic", Amiri, Arial, sans-serif;
}
#product-1576448913 .ad-font-sample,
#product-1576448913 .ad-live-preview :is(.ad-preview-name, .ad-preview-major, .ad-preview-honor, .ad-back-line1, .ad-back-line2) {
  font-family: var(--ad-font) !important; font-weight: 400;
}
#product-1576448913 .ad-preview-backpiece {
  position: absolute; left: 76.5%; top: 68%;
  width: 23%; height: 30.7%; z-index: 4; opacity: 0;
}
#product-1576448913 .ad-preview-back-image {
  position: absolute; inset: 0; width: 100%;
  height: 100%; object-fit: contain;
}
#product-1576448913 .ad-back-line1 {
  left: 80.5%; top: 72%; width: 15%; height: 3.5%;
}
#product-1576448913 .ad-back-line2 {
  left: 80.5%; top: 75.7%; width: 15%; height: 3.5%;
}
#product-1576448913 .ad-preview-lettering {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6;
}
#product-1576448913 .ad-live-preview.has-lettering .ad-preview-text {
  visibility: hidden;
}

@media (max-width: 520px) {
  #product-1576448913 .ad-field-card,
  #product-1576448913 salla-product-options .s-product-options-option-container {
    padding: 12px !important; border-radius: 14px !important;
  }
  #product-1576448913 .ad-grid { gap: 6px; }
  #product-1576448913 :is(.ad-font-grid, .ad-university-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode-span {
    font-size: 12px !important;
    padding: 12px 10px 12px 38px !important;
  }
  #product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label::before,
  #product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode > label:has(input:checked)::after {
    left: 10px;
  }
  #product-1576448913 .ad-uni-choice { min-height: 105px; }
  #product-1576448913 .ad-uni-image { width: 58px; height: 58px; }
  #product-1576448913 .ad-design-image { width: 88px; height: 88px; }
  #product-1576448913 salla-product-options .s-product-options-grid-mode-span {
    font-size: 11px !important;
  }
}
@media (max-width: 360px) {
  #product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #product-1576448913 .ad-choice { transition: none; }
  #product-1576448913 salla-product-options [data-option-id="971860831"] .s-product-options-grid-mode-span {
    transition: none;
  }
}









/* تخصيص المنتج 218356487 */
#product-218356487 #ad218-customizer {
  width: 100%;
  margin-bottom: 10px;
  color: #0f172a;
  direction: rtl;
  text-align: right;
  font-family: inherit;
}

#product-218356487 #ad218-customizer *,
#product-218356487 .ad218-live-preview *,
#ad218-zoom-dialog * {
  box-sizing: border-box;
}

#product-218356487 .ad218-card,
#product-218356487 salla-product-options .s-product-options-option-container {
  width: 100%;
  padding: 14px !important;
  margin: 0 0 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  text-align: right;
}

#product-218356487 #ad218-customizer [hidden],
#product-218356487 salla-product-options .s-product-options-option-container.hidden,
#product-218356487 salla-product-options .s-product-options-option-container[hidden] {
  display: none !important;
}

#product-218356487 .ad218-label,
#product-218356487 salla-product-options .s-product-options-option-label {
  display: block !important;
  margin: 0 0 9px !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
}

#product-218356487 .ad218-label b {
  color: #ef4444;
}

#product-218356487 .ad218-help {
  margin: -4px 0 10px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.7;
}

#product-218356487 .ad218-input,
#product-218356487 salla-product-options input[type="text"],
#product-218356487 salla-product-options textarea {
  display: block;
  width: 100% !important;
  min-height: 44px;
  padding: 10px 12px !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  font: inherit;
  font-size: 13px !important;
  outline: none;
  box-shadow: none;
}

#product-218356487 .ad218-input:focus,
#product-218356487 salla-product-options input[type="text"]:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px #2563eb1a !important;
}

#product-218356487 .ad218-error {
  display: block;
  margin-top: 5px;
  color: #dc2626;
  font-size: 11px;
}

#product-218356487 .ad218-error:empty {
  display: none;
}

#product-218356487 .ad218-grid {
  display: grid;
  gap: 8px;
}

#product-218356487 .ad218-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#product-218356487 .ad218-date-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#product-218356487 .ad218-font-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#product-218356487 .ad218-choice {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 7px;
  margin: 0;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  color: #0f172a;
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .15s, background-color .15s;
}

#product-218356487 .ad218-choice:hover {
  border-color: #93b4ed;
}

#product-218356487 .ad218-choice[aria-pressed="true"] {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

#product-218356487 .ad218-choice[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font: 700 11px/1 Arial, sans-serif;
  pointer-events: none;
}

#product-218356487 .ad218-choice:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

#product-218356487 .ad218-date-choice {
  min-height: 164px;
  gap: 5px;
}

#product-218356487 .ad218-date-image {
  display: block;
  width: 100%;
  max-width: 110px;
  height: 110px;
  object-fit: contain;
}

#product-218356487 .ad218-date-choice small {
  color: #64748b;
  font: 11px/1.4 Arial, sans-serif;
}

#product-218356487 .ad218-font-choice {
  min-height: 92px;
}

#product-218356487 .ad218-font-sample {
  display: block;
  min-height: 38px;
  font-size: 34px;
  line-height: 1.3;
  font-synthesis: none;
}

#product-218356487 .ad218-font-thuluth {
  font-family: "AD Sash Thuluth", "Noto Naskh Arabic", Amiri, Arial, sans-serif !important;
}

#product-218356487 .ad218-font-thuluth2 {
  font-family: "AD Sash Thuluth II", "Noto Naskh Arabic", Amiri, Arial, sans-serif !important;
}

#product-218356487 .ad218-font-diwani {
  font-family: "AD Sash Diwani", "Noto Naskh Arabic", Amiri, Arial, sans-serif !important;
}

#product-218356487 .ad218-font-monotype {
  font-family: "AD Sash Monotype", "Noto Naskh Arabic", Amiri, Arial, sans-serif !important;
  font-size: 25px;
}

#product-218356487 .ad218-font-calisto {
  font-family: "AD Sash Calisto", "Noto Naskh Arabic", Amiri, Arial, sans-serif !important;
  font-size: 13px;
}

#product-218356487 .ad218-color-choice {
  flex-direction: row;
  min-height: 48px;
}

#product-218356487 .ad218-color-dot {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid #00000012;
}

/* خيارات سلة الأصلية */
#product-218356487 salla-product-options .s-product-options-option {
  margin: 0 !important;
  padding: 0 !important;
}

#product-218356487 salla-product-options .s-product-options-grid-mode {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 8px !important;
}

#product-218356487 salla-product-options .s-product-options-grid-mode > label {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  min-height: 72px;
  margin: 0 !important;
  cursor: pointer;
  isolation: isolate;
}

#product-218356487 salla-product-options .s-product-options-grid-mode > label > input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
}

#product-218356487 salla-product-options .s-product-options-grid-mode-span {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100% !important;
  height: 100%;
  min-height: 72px;
  padding: 12px 14px 12px 43px !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 12px !important;
  color: #334155 !important;
  font: inherit;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
  text-align: right;
  white-space: normal !important;
  overflow-wrap: break-word;
  box-shadow: none !important;
}

#product-218356487 salla-product-options .s-product-options-grid-mode > label::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

#product-218356487 salla-product-options label:has(input:checked) > .s-product-options-grid-mode-span {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 1px #2563eb !important;
}

#product-218356487 salla-product-options .s-product-options-grid-mode > label:has(input:checked)::before {
  border-color: #2563eb;
  background: #2563eb;
}

#product-218356487 salla-product-options .s-product-options-grid-mode > label:has(input:checked)::after {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  z-index: 2;
  pointer-events: none;
}

#product-218356487 salla-product-options label:has(input:focus-visible) > .s-product-options-grid-mode-span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

#product-218356487 salla-product-options label:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

/* المعاينة */
#product-218356487 .ad218-preview-host {
  position: relative !important;
}

#product-218356487 .ad218-live-preview,
#ad218-zoom-dialog .ad218-live-preview {
  --ad218-thread: #CFCFCF;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: #fff;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

#product-218356487 .ad218-live-preview.is-ready,
#ad218-zoom-dialog .ad218-live-preview.is-ready {
  visibility: visible;
}

#product-218356487 .ad218-scene,
#ad218-zoom-dialog .ad218-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ad218-scene-size, 100%);
  height: var(--ad218-scene-size, 100%);
  transform: translate(-50%, -50%);
  direction: ltr;
}

#product-218356487 .ad218-base,
#ad218-zoom-dialog .ad218-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product-218356487 .ad218-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

#product-218356487 .ad218-text,
#ad218-zoom-dialog .ad218-text {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ad218-thread);
  font-family: var(--ad218-font);
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
  opacity: 0;
  transform-origin: center;
  font-synthesis: none;
}

#product-218356487 .ad218-live-preview .is-visible,
#ad218-zoom-dialog .ad218-live-preview .is-visible {
  opacity: 1;
}

#product-218356487 .ad218-name,
#ad218-zoom-dialog .ad218-name {
  left: 6.8%;
  top: 50%;
  width: 46%;
  height: 12%;
  transform: rotate(-92deg);
}

/* التاريخ: أكبر ومتوازن مع الاسم */
#product-218356487 .ad218-date,
#ad218-zoom-dialog .ad218-date {
  position: absolute !important;
  left: 66.5% !important;
  top: 57% !important;
  width: 17% !important;
  height: 46% !important;
  z-index: 5;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) rotate(4deg) !important;
  transform-origin: center !important;
  background: var(--ad218-thread, #CFCFCF) !important;
  -webkit-mask-image: var(--ad218-date-centered, var(--ad218-date-image)) !important;
  mask-image: var(--ad218-date-centered, var(--ad218-date-image)) !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  mask-mode: alpha !important;
}

#product-218356487 .ad218-backpiece,
#ad218-zoom-dialog .ad218-backpiece {
  position: absolute;
  left: 76.5%;
  top: 68%;
  width: 23%;
  height: 30.7%;
  z-index: 4;
  opacity: 0;
}

#product-218356487 .ad218-back-image,
#ad218-zoom-dialog .ad218-back-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product-218356487 .ad218-back-line1,
#ad218-zoom-dialog .ad218-back-line1 {
  left: 80.5%;
  top: 72%;
  width: 15%;
  height: 3.5%;
}

#product-218356487 .ad218-back-line2,
#ad218-zoom-dialog .ad218-back-line2 {
  left: 80.5%;
  top: 75.7%;
  width: 15%;
  height: 3.5%;
}

#product-218356487 .ad218-lettering,
#ad218-zoom-dialog .ad218-lettering {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}

#product-218356487 .ad218-live-preview.has-lettering .ad218-text,
#ad218-zoom-dialog .ad218-live-preview.has-lettering .ad218-text {
  visibility: hidden;
}

#product-218356487 .ad218-zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #ffffffed;
  color: #334155;
  cursor: pointer;
  pointer-events: auto;
}

#ad218-zoom-dialog {
  position: fixed;
  max-width: none;
  width: min(92vw, 820px);
  max-height: 92vh;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
}

#ad218-zoom-dialog::backdrop {
  background: #0f172ab8;
}

#ad218-zoom-dialog .ad218-dialog-stage {
  position: relative;
  width: min(100%, 82vh);
  aspect-ratio: 1;
  margin: 30px auto 0;
}

#ad218-zoom-dialog .ad218-dialog-close {
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: 24px/1 Arial;
  cursor: pointer;
}

@media (max-width: 520px) {
  #product-218356487 .ad218-card,
  #product-218356487 salla-product-options .s-product-options-option-container {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  #product-218356487 .ad218-grid {
    gap: 6px;
  }

  #product-218356487 .ad218-date-grid,
  #product-218356487 .ad218-font-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #product-218356487 .ad218-date-choice {
    min-height: 145px;
  }

  #product-218356487 .ad218-date-image {
    max-width: 86px;
    height: 92px;
  }

  #product-218356487 salla-product-options .s-product-options-grid-mode-span {
    font-size: 11px !important;
    padding: 12px 10px 12px 36px !important;
  }

  #product-218356487 salla-product-options .s-product-options-grid-mode > label::before,
  #product-218356487 salla-product-options .s-product-options-grid-mode > label:has(input:checked)::after {
    left: 9px;
  }
}

@media (max-width: 360px) {
  #product-218356487 .ad218-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #product-218356487 salla-product-options .s-product-options-grid-mode {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #product-218356487 .ad218-choice {
    transition: none;
  }
}