/* ─── Shipping & Payment page (competitor-style layout, brand accent) ─── */

.ath-ship-page {
  --ath-ship-fg: #1a1a1a;
  --ath-ship-muted: #6b7280;
  --ath-ship-border: rgba(15, 23, 42, 0.1);
  --ath-ship-soft: #f5f5f5;
  --ath-ship-card: #ffffff;
  --ath-ship-radius: 14px;
  --ath-ship-accent: var(--primary-color, #5c1a1a);
  --ath-ship-on-accent: var(--text-color-primary-bg, #ffffff);
  padding: 8px 0 64px;
  color: var(--ath-ship-fg);
  background: linear-gradient(180deg, #f7f7f8 0%, #ffffff 280px);
}

.ath-ship-page__head {
  margin-bottom: 22px;
}

.ath-ship-page__crumbs .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
}

/* No hover state — hover shares the idle declaration. */
.ath-ship-page__crumbs .breadcrumb-item a,
.ath-ship-page__crumbs .breadcrumb-item a:hover {
  color: var(--ath-ship-muted);
  text-decoration: none;
}

.ath-ship-page__crumbs .breadcrumb-item.active {
  color: var(--ath-ship-fg);
  font-weight: 600;
}

.ath-ship-page__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Two-column layout */
.ath-ship-page__layout,
.flex-profile {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

/* ─── Sidebar (white card like competitor) ─── */
.ath-ship-sidebar.profile-box {
  width: 280px;
  min-width: 260px;
  background: var(--ath-ship-card);
  border: 1px solid var(--ath-ship-border);
  border-radius: var(--ath-ship-radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  padding: 10px;
  position: sticky;
  top: 96px;
}

.ath-ship-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ath-ship-sidebar__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--ath-ship-fg);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.ath-ship-sidebar__link svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ath-ship-muted);
}

.ath-ship-sidebar__link .content-list-profile h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.ath-ship-sidebar__link .content-list-profile p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ath-ship-muted);
  font-weight: 500;
}

.ath-ship-sidebar__link:hover {
  background: var(--ath-ship-soft);
}

.ath-ship-sidebar__link.active {
  background: var(--ath-ship-accent);
  color: var(--ath-ship-on-accent);
}

.ath-ship-sidebar__link.active svg {
  color: var(--ath-ship-on-accent);
}

.ath-ship-sidebar__link.active .content-list-profile p {
  color: rgba(255, 255, 255, 0.82);
}

/* Content column */
.ath-ship-content.content-profile-page {
  min-width: 0;
  flex: 1 1 auto;
}

.ath-ship-page .profile-page-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ath-ship-fg);
}

.ath-ship-page .account-content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Column headers */
.ath-ship-page .head-table {
  padding: 12px 18px;
  background: var(--ath-ship-soft);
  border: 1px solid var(--ath-ship-border);
  border-radius: 12px;
  color: var(--ath-ship-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Shipping rows as cards */
.ath-ship-page .tab-content-shipping .card-table.options-table {
  margin-bottom: 12px;
  background: var(--ath-ship-card);
  border: 1px solid var(--ath-ship-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ath-ship-page .tab-content-shipping .body-table,
.ath-ship-page .tab-content-shipping .card-table .card-body {
  padding: 16px 18px;
}

.ath-ship-page .ath-ship-carrier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.ath-ship-page .ath-ship-carrier img {
  display: inline-block;
  width: 46px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.ath-ship-page .s-row .s-title {
  width: auto;
  min-width: 0;
  margin-inline-end: 6px;
  color: var(--ath-ship-muted);
  font-size: 13px;
}

.ath-ship-page .color-primary,
.ath-ship-page .s-content {
  color: var(--ath-ship-accent) !important;
  font-weight: 700;
}

.ath-ship-page .color-success {
  color: #2563eb !important;
  font-weight: 600;
}

.ath-ship-page .cursor-pointer {
  cursor: pointer;
}

.ath-ship-page .text-decoration-underline {
  text-decoration: underline;
}

.ath-ship-page .icon-clear {
  color: var(--ath-ship-muted);
  opacity: 0.7;
}

/* Payment icons */
.ath-ship-page .payment-method-card {
  width: 88px;
  height: 88px;
  margin: 0 12px 16px 0;
  border: 1px solid var(--ath-ship-border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ath-ship-page .payment-method-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

[dir="rtl"] .ath-ship-page .payment-method-card {
  margin: 0 0 16px 12px;
}

/* Bank cards */
.ath-ship-page .shipping-payment-card.ath-ship-bank {
  width: 100%;
  max-width: 720px;
  min-height: 0;
  margin-bottom: 14px;
  border: 1px solid var(--ath-ship-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.ath-ship-page .card-body-shipping {
  padding: 1.25rem 1.5rem;
}

.ath-ship-page .card-title-shipping {
  font-size: 1.1rem;
  color: var(--ath-ship-accent);
  font-weight: 800;
}

.ath-ship-page .bank-image {
  width: 90px;
  flex-shrink: 0;
}

.ath-ship-page .bank-image img {
  width: 100%;
  height: auto;
}

.ath-ship-page .card-account-details {
  margin-inline-start: 20px;
}

.ath-ship-page .shipping-text {
  margin: 0 0 8px;
  gap: 12px;
  align-items: center;
}

.ath-ship-page .shipping-text p {
  margin: 0;
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ath-ship-muted);
  font-weight: 600;
}

/* Cities modal */
.shipping-cities-modal .modal-content {
  border-radius: 14px;
  border: 1px solid var(--ath-ship-border);
  overflow: hidden;
}

.shipping-cities-modal .modal-header {
  border-bottom: 1px solid var(--ath-ship-border);
  align-items: center;
}

.shipping-cities-modal .modal-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.shipping-cities-modal .icon-search {
  position: absolute;
  inset-inline-end: 15px;
  top: 12px;
  font-size: 18px;
  color: var(--ath-ship-muted);
}

.shipping-cities-modal ul {
  max-height: 320px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 0 4px;
  list-style: none;
}

.shipping-cities-modal ul li {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 14px;
}

/* Mobile menu */
.ath-ship-mobile {
  margin-bottom: 16px;
}

.ath-ship-mobile__toggle {
  color: var(--ath-ship-on-accent) !important;
  background: var(--ath-ship-accent);
  border-radius: 12px;
  padding: 14px 16px !important;
  text-decoration: none !important;
  gap: 10px;
}

.ath-ship-mobile__svg {
  flex-shrink: 0;
  color: inherit;
}

.ath-ship-mobile__title {
  flex: 1 1 auto;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: inherit !important;
}

.ath-ship-mobile__caret {
  color: inherit;
  opacity: 0.9;
}

.ath-ship-mobile__menu {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--ath-ship-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  padding: 6px 0;
  margin-top: 6px !important;
}

.ath-ship-mobile__menu a {
  display: block;
  padding: 12px 16px;
  color: var(--ath-ship-fg);
  font-weight: 600;
  text-decoration: none;
}

.ath-ship-mobile__menu a:hover {
  background: var(--ath-ship-soft);
}

/* Legacy Soft helpers kept for compatibility */
.card-table-header {
  background-color: var(--secondary-color-alt4, #eee);
  color: var(--secondary-color-alt3, #333);
}

.s-row .s-content {
  margin-inline-start: 10px;
}

@media only screen and (max-width: 991px) {
  .ath-ship-page__layout,
  .flex-profile {
    flex-direction: column;
    gap: 14px;
  }

  .ath-ship-sidebar.profile-box {
    display: none !important;
  }
}

@media only screen and (max-width: 768px) {
  .ath-ship-page {
    padding: 4px 0 48px;
  }

  .ath-ship-page .tab-content-shipping .options-table .col {
    flex-basis: unset;
  }

  .ath-ship-page .variant-name-sm {
    margin-top: 6px;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--ath-ship-muted);
    font-size: 12px;
  }

  .ath-ship-page .card-account-details {
    margin-inline-start: 0 !important;
    margin-top: 12px;
  }

  .ath-ship-page .shipping-payment-card.ath-ship-bank {
    width: 100%;
  }

  .ath-ship-page .card-body-shipping {
    padding: 1rem;
  }
}
