.aalam-wgo-host {
  position: relative;
  overflow: visible;
}

.aalam-wgo-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: auto;
  z-index: 22;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.aalam-wgo-badge:hover,
.aalam-wgo-badge:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.36);
  opacity: 0.98;
}

.aalam-wgo-badge:focus {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.aalam-wgo-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.26);
  font-size: 13px;
  font-weight: 800;
}

.aalam-wgo-badge-text {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.etheme-product-grid-item .aalam-wgo-badge,
.product-grid-item .aalam-wgo-badge {
  top: 12px;
  right: 12px;
}

body.home .et-advance-product-tabs .swiper-entry.middle-inside.arrows-always .aalam-wgo-host > .aalam-wgo-badge {
  left: 12px;
  right: auto;
}

body.aalam-wgo-lang-en.post-type-archive-product .elementor-widget-woocommerce-etheme_archive_products .aalam-wgo-host > .aalam-wgo-badge {
  left: 12px;
  right: auto;
}

.aalam-wgo-popup {
  position: absolute;
  z-index: 999999;
  min-width: 250px;
  max-width: min(360px, calc(100vw - 18px));
  padding: 12px;
  border-radius: 15px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.aalam-wgo-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.aalam-wgo-popup-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.aalam-wgo-popup-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  margin-bottom: 7px;
  border-radius: 11px;
  background: #f8fafc;
  color: #0f172a;
}

.aalam-wgo-popup-item:last-child {
  margin-bottom: 0;
}

.aalam-wgo-popup-item.is-discount {
  background: #f0f9ff;
}

.aalam-wgo-popup-item.is-service {
  background: #f0fdf4;
}

.aalam-wgo-popup-name,
.aalam-wgo-popup-name-link {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.aalam-wgo-popup-name-link:hover {
  text-decoration: underline;
}

.aalam-wgo-popup-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
}

.aalam-wgo-popup-price {
  font-size: 12px;
  color: #334155;
  direction: ltr;
  unicode-bidi: plaintext;
}

.aalam-wgo-popup-prices {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
}

.aalam-wgo-popup-price-label {
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.aalam-wgo-popup-prices del {
  color: #64748b;
}

.aalam-wgo-popup-prices ins {
  color: #0f766e;
  text-decoration: none;
  font-weight: 800;
}

.aalam-wgo-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.aalam-wgo-popup-accept,
.aalam-wgo-popup-details,
.aalam-wgo-popup-reject {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.aalam-wgo-popup-accept {
  background: #0284c7;
  color: #ffffff;
}

.aalam-wgo-popup-details {
  background: #e2e8f0;
  color: #0f172a;
}

.aalam-wgo-popup-reject {
  background: #fee2e2;
  color: #991b1b;
}

.aalam-wgo-cart-pill {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.aalam-wgo-lang-ar .aalam-wgo-cart-pill,
html[lang^="ar"] .aalam-wgo-cart-pill {
  margin-inline-start: 0;
  margin-inline-end: 6px;
}

.woocommerce-mini-cart .aalam-wgo-cart-pill,
.etheme-elementor-off-canvas .aalam-wgo-cart-pill,
.etheme-elementor-off-canvas__main .aalam-wgo-cart-pill {
  padding: 1px 7px;
  font-size: 10px;
  line-height: 1.5;
  vertical-align: middle;
}

.aalam-wgo-locked-qty {
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.aalam-wgo-reminder-notice {
  margin: 10px 0 16px;
  padding: 11px 14px;
  border-inline-start: 4px solid #0284c7;
  border-radius: 12px;
  background: #eff6ff;
}

.woocommerce-checkout .aalam-wgo-reminder-notice {
  margin-bottom: 14px;
}

.aalam-wgo-lang-ar .aalam-wgo-reminder-notice,
html[lang^="ar"] .aalam-wgo-reminder-notice {
  direction: rtl;
  text-align: right;
}

.aalam-wgo-reminders {
  margin: 0;
}

.aalam-wgo-reminder-block {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
}

.aalam-wgo-reminder-block:first-child {
  margin-top: 0;
}

.aalam-wgo-reminder-discount {
  border-inline-start: 3px solid #0284c7;
}

.aalam-wgo-reminder-service {
  border-inline-start: 3px solid #16a34a;
}

.aalam-wgo-reminder-inline-notices {
  border-inline-start: 3px solid #dc2626;
  background: #fff7f7;
}

.aalam-wgo-inline-notice {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.aalam-wgo-inline-notice:last-child {
  margin-bottom: 0;
}

.aalam-wgo-inline-notice.is-error {
  background: #fee2e2;
  color: #7f1d1d;
}

.aalam-wgo-inline-notice.is-notice,
.aalam-wgo-inline-notice.is-success {
  background: #e0f2fe;
  color: #0f4c81;
}

.aalam-wgo-reminder-block p {
  margin: 4px 0 10px;
  color: #334155 !important;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.aalam-wgo-reminder-block > strong {
  display: block;
  margin-bottom: 9px;
  padding-bottom: 6px;
  color: #0f172a !important;
  font-size: 16px;
  font-weight: 800;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.aalam-wgo-reminder-list {
  margin: 0 0 4px;
  padding-inline-start: 18px;
}

.aalam-wgo-reminder-list li {
  margin: 6px 0;
}

.aalam-wgo-reminder-discount .aalam-wgo-reminder-list {
  list-style: none;
  padding: 0;
  margin-bottom: 6px;
}

.aalam-wgo-reminder-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.aalam-wgo-reminder-product {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.aalam-wgo-reminder-discount-label {
  color: #166534;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.aalam-wgo-reminder-prices {
  display: inline-grid;
  gap: 4px;
  white-space: normal;
  font-size: 12px;
}

.aalam-wgo-reminder-price-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.aalam-wgo-reminder-price-label {
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.aalam-wgo-reminder-prices del {
  color: #64748b;
}

.aalam-wgo-reminder-prices ins {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.aalam-wgo-reminder-price-group.is-before del {
  color: #475569;
}

.aalam-wgo-reminder-price-group.is-after ins {
  color: #0f766e;
}

.aalam-wgo-reminder-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.aalam-wgo-lang-ar .aalam-wgo-reminder-actions,
html[lang^="ar"] .aalam-wgo-reminder-actions {
  justify-content: flex-start;
}

.aalam-wgo-reminder-qty-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
}

.aalam-wgo-reminder-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(226, 232, 240, 0.75);
  font-size: 12px;
  color: #334155;
}

.aalam-wgo-reminder-add,
.aalam-wgo-reminder-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.aalam-wgo-reminder-add.is-disabled {
  background: #cbd5e1;
  color: #334155;
  cursor: not-allowed;
  pointer-events: none;
}

.aalam-wgo-reminder-limit-note {
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: #ffedd5;
  color: #9a3412 !important;
  font-size: 13px;
  font-weight: 700;
}

.aalam-wgo-reminder-add:hover,
.aalam-wgo-reminder-details:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.aalam-wgo-reminder-add {
  background: #0284c7;
  color: #ffffff;
}

.aalam-wgo-reminder-details {
  background: #e2e8f0;
  color: #0f172a;
}

.aalam-wgo-reminder-service .aalam-wgo-reminder-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.aalam-wgo-reminder-service .aalam-wgo-service-item {
  margin: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #14532d !important;
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

.aalam-wgo-service-index {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.aalam-wgo-service-text {
  flex: 1 1 auto;
  color: #14532d !important;
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .aalam-wgo-reminder-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .aalam-wgo-reminder-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .aalam-wgo-badge {
    right: 8px;
    top: 8px;
    bottom: auto;
    padding: 6px 10px;
  }

  body.home .et-advance-product-tabs .swiper-entry.middle-inside.arrows-always .aalam-wgo-host > .aalam-wgo-badge {
    left: 8px;
    right: auto;
  }

  body.aalam-wgo-lang-en.post-type-archive-product .elementor-widget-woocommerce-etheme_archive_products .aalam-wgo-host > .aalam-wgo-badge {
    left: 8px;
    right: auto;
  }

  .aalam-wgo-badge-text {
    font-size: 11px;
  }

  .aalam-wgo-popup {
    min-width: 220px;
    max-width: min(320px, calc(100vw - 12px));
    padding: 10px;
  }

  .aalam-wgo-reminder-notice {
    padding: 10px 12px;
  }

  .aalam-wgo-reminder-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .aalam-wgo-reminder-block {
    padding: 10px 11px;
  }

  .aalam-wgo-reminder-block > strong {
    font-size: 15px;
  }

  .aalam-wgo-reminder-block p {
    font-size: 13px;
  }

  .aalam-wgo-reminder-actions {
    justify-content: flex-start;
  }
}
