:root {
  --static-bg: #f4eee7;
  --static-surface: #fff9f1;
  --static-panel: #ece3d9;
  --static-text: #1e1e1e;
  --static-mid: #5f5b57;
  --static-light: #8e8580;
  --static-border: #d4c8bc;
  --static-accent: #1f3a5f;
  --static-shadow: 0 8px 28px rgba(65, 48, 35, 0.08);
  --static-container: 1480px;
}

body {
  background: var(--static-bg) !important;
  color: var(--static-text);
}

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 231, 0.92) !important;
  color: var(--static-text) !important;
  border-bottom: 1px solid rgba(212, 200, 188, 0.82);
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(150%);
}

body > header a,
body > header nav a,
body > header span {
  color: var(--static-text) !important;
}

body > header + .bg-blue-800 {
  display: none;
}

body > header > .container {
  max-width: var(--static-container) !important;
}

@media (min-width: 1024px) {
  body > header > .container {
    padding-left: max(16px, calc((100vw - var(--static-container)) / 2)) !important;
    padding-right: max(16px, calc((100vw - var(--static-container)) / 2)) !important;
  }
}

.header-search-wrap {
  border: 1px solid rgba(31, 58, 95, 0.28);
  border-radius: 16px !important;
  background: rgba(255, 249, 241, 0.9) !important;
  padding: 6px 8px 6px 16px;
}

.header-search-btn {
  color: var(--static-accent) !important;
}

header .header-search-clear {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--static-light);
}

header .header-search-input {
  height: 2.75rem !important;
  padding: 0.82rem 0.75rem 0.38rem !important;
  font-size: 1.0625rem !important;
  line-height: 1.2 !important;
  color: var(--static-text) !important;
}

.static-v2 {
  min-height: 70vh;
  background: var(--static-bg);
  color: var(--static-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.static-inner {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 34px 0 72px;
}

.static-inner-wide {
  width: min(100% - 32px, var(--static-container));
}

.static-card {
  padding: 30px;
  border: 1px solid rgba(212, 200, 188, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff9f1 0, #fcf4ea 100%);
  box-shadow: var(--static-shadow);
}

.static-card h1 {
  margin: 0 0 18px;
  color: var(--static-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
}

.static-content {
  color: var(--static-mid);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
}

.static-content h2 {
  margin: 24px 0 10px;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.static-content h2:first-child {
  margin-top: 0;
}

/* Keep one type scale on static pages even when Tailwind utility classes appear in markup */
.static-v2 .static-content :is(p, li, td, th, div, span) {
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
}

.static-v2 .static-content h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #000000 !important;
}

.static-v2 .static-content p.font-semibold,
.static-v2 .static-content p.font-medium {
  color: var(--static-text) !important;
  font-weight: 600 !important;
}

.static-v2 .static-content .text-gray-500,
.static-v2 .static-content .text-gray-600 {
  color: var(--static-light) !important;
}

.static-v2 .static-content .text-sm,
.static-v2 .static-content .text-base {
  font-size: 15px !important;
}

.static-v2 .static-content a.static-link-black {
  color: #000000 !important;
}

.static-v2 .static-content font {
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
}

.static-content p {
  margin: 0 0 12px;
}

.static-content ul {
  margin: 12px 0 16px 20px;
  padding: 0;
  list-style: disc;
}

.static-content li {
  margin-bottom: 5px;
}

.static-content a {
  color: var(--static-accent);
  font-weight: 600;
  text-decoration: none;
}

.static-content a:hover {
  text-decoration: underline;
}

.static-content strong,
.static-content b {
  color: var(--static-text);
}

.static-content .bg-red-50 {
  border-color: rgba(185, 28, 28, 0.22) !important;
  background: rgba(254, 242, 242, 0.76) !important;
  color: #8f1d1d !important;
}

.static-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(185, 28, 28, 0.22);
  border-radius: 12px;
  background: rgba(254, 242, 242, 0.76);
  color: #8f1d1d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
}

.static-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 22px;
}

.static-product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(212, 200, 188, 0.9);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.7);
  box-shadow: 0 1px 0 rgba(65, 48, 35, 0.04);
}

.static-product-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.static-product-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--static-bg);
}

.static-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.static-product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
}

.static-product-name {
  color: var(--static-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
}

.static-product-price {
  color: var(--static-accent);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
}

.static-product-compare {
  color: var(--static-light);
  font-size: 12px;
  line-height: 1.2;
}

.static-product-compare span {
  text-decoration: line-through;
}

.static-product-meta {
  color: var(--static-mid);
  font-size: 13px;
}

.static-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--static-accent);
  color: var(--static-surface) !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}

.account-area-v2 {
  color: var(--static-text);
}

.account-area-v2 > .bg-white,
.account-area-v2 .bg-white {
  border-color: rgba(212, 200, 188, 0.92) !important;
  border-radius: 14px !important;
  background: rgba(255, 249, 241, 0.86) !important;
  box-shadow: var(--static-shadow) !important;
}

.account-area-v2 h1,
.account-area-v2 h2,
.account-area-v2 h3 {
  color: var(--static-text) !important;
}

.account-area-v2 a {
  color: var(--static-accent) !important;
}

.account-area-v2 a.static-product-button {
  color: var(--static-surface) !important;
}

.account-area-v2 a[class*="bg-[#FF6600]"],
.account-area-v2 button[class*="bg-[#FF6600]"],
.account-area-v2 .bg-orange-600 {
  border-color: transparent !important;
  background: var(--static-accent) !important;
  color: var(--static-surface) !important;
}

.account-area-v2 a[class*="bg-gray"],
.account-area-v2 button[class*="bg-gray"] {
  border-color: var(--static-border) !important;
  background: var(--static-panel) !important;
  color: var(--static-text) !important;
}

.account-area-v2 .wishlist-empty-message {
  border: 1px solid rgba(212, 200, 188, 0.92);
  background: rgba(244, 238, 231, 0.56);
  color: var(--static-mid);
  line-height: 1.55;
}

.account-area-v2 .wishlist-empty-message strong {
  background: transparent;
  color: var(--static-text);
}

.account-area-v2 .wishlist-empty-message a {
  color: var(--static-accent) !important;
  font-weight: 700;
  text-decoration: none;
}

.account-area-v2 .wishlist-empty-message a:hover {
  text-decoration: underline;
}

.account-area-v2 input[type="text"],
.account-area-v2 input[type="email"],
.account-area-v2 input[type="password"],
.account-area-v2 select,
.account-area-v2 textarea {
  border-color: rgba(31, 58, 95, 0.22) !important;
  border-radius: 12px !important;
  background: rgba(255, 249, 241, 0.84) !important;
  color: var(--static-text) !important;
  box-shadow: none !important;
}

.account-area-v2 input:focus,
.account-area-v2 select:focus,
.account-area-v2 textarea:focus {
  border-color: rgba(31, 58, 95, 0.54) !important;
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.1) !important;
  outline: none !important;
}

.account-history-detail-v2 {
  width: min(100% - 32px, 980px) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--static-text);
}

.account-history-detail-v2 > .bg-white {
  margin-bottom: 0 !important;
  padding: 30px !important;
  border: 1px solid rgba(212, 200, 188, 0.92) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(252, 244, 234, 0.96)) !important;
  box-shadow: var(--static-shadow) !important;
}

.account-history-detail-v2 h1 {
  margin: 0 0 8px !important;
  color: var(--static-text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

.account-history-detail-v2 h2 {
  margin: 24px 0 10px !important;
  color: var(--static-text) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.account-history-detail-v2 h2:first-of-type {
  margin-top: 20px !important;
}

.account-history-detail-v2 .bg-gray-50 {
  background: rgba(244, 238, 231, 0.56) !important;
  color: var(--static-mid) !important;
}

.account-history-detail-v2 .border-gray-100,
.account-history-detail-v2 .border-gray-200,
.account-history-detail-v2 .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(212, 200, 188, 0.92) !important;
}

.account-history-detail-v2 .text-gray-500,
.account-history-detail-v2 .text-gray-600,
.account-history-detail-v2 .text-gray-700 {
  color: var(--static-mid) !important;
}

.account-history-detail-v2 .text-gray-800,
.account-history-detail-v2 .text-gray-900,
.account-history-detail-v2 .txt-black {
  color: var(--static-text) !important;
}

.account-history-detail-v2 [class*="text-[#FF6600]"] {
  color: var(--static-accent) !important;
}

.account-history-detail-v2 a {
  color: var(--static-accent) !important;
  text-decoration-color: rgba(31, 58, 95, 0.28) !important;
}

.account-history-detail-v2 a[class*="bg-gray"] {
  border: 1px solid var(--static-border) !important;
  background: var(--static-panel) !important;
  color: var(--static-text) !important;
  text-decoration: none !important;
}

.account-history-detail-v2 .space-y-3 {
  display: grid !important;
  gap: 10px !important;
}

.account-payment-option {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 58, 95, 0.2) !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: var(--static-text) !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.account-payment-option:hover {
  border-color: rgba(31, 58, 95, 0.36) !important;
  color: var(--static-text) !important;
  transform: translateY(-1px);
}

.account-payment-card {
  border-color: rgba(31, 58, 95, 0.24) !important;
}

.account-payment-eft {
  border-color: rgba(46, 107, 77, 0.26) !important;
}

.account-payment-eft:hover {
  border-color: rgba(46, 107, 77, 0.42) !important;
}

.account-payment-payflex {
  border-color: rgba(100, 103, 166, 0.28) !important;
}

.account-payment-payflex:hover {
  border-color: rgba(100, 103, 166, 0.48) !important;
}

.account-payment-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--static-accent);
  color: var(--static-surface);
}

.account-payment-card .account-payment-icon {
  background: #1f3a5f;
}

.account-payment-eft .account-payment-icon {
  background: #2e6b4d;
}

.account-payment-payflex .account-payment-icon {
  background: #6467a6;
}

.account-payment-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-payment-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.account-payment-title {
  color: var(--static-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.account-payment-meta {
  color: var(--static-mid);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.account-payment-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.account-payment-logo {
  width: 71px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid rgba(212, 200, 188, 0.92);
  border-radius: 6px;
  background: #ffffff;
  color: var(--static-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.account-payment-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 53px;
  max-height: 13px;
  object-fit: contain;
}

.account-payment-card-logo {
  width: 71px;
}

.account-payment-ozow-logo {
  width: 71px;
  border-color: rgba(46, 107, 77, 0.22);
  background: #eff8f2;
}

.account-payment-ozow-logo img {
  max-width: 53px;
  max-height: 13px;
}

.account-payment-payflex-logo {
  width: 71px;
  border-color: rgba(100, 103, 166, 0.2);
  background: #eee7f6;
}

.account-history-detail-v2 input[type="submit"],
.account-history-detail-v2 a[class*="bg-[#FF6600]"],
.account-history-detail-v2 a[class*="bg-blue"],
.account-history-detail-v2 a[class*="bg-indigo"] {
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: var(--static-accent) !important;
  color: var(--static-surface) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.account-history-detail-v2 input[type="submit"]:hover,
.account-history-detail-v2 a[class*="bg-[#FF6600]"]:hover,
.account-history-detail-v2 a[class*="bg-blue"]:hover,
.account-history-detail-v2 a[class*="bg-indigo"]:hover {
  background: #172e4e !important;
}

.account-history-detail-v2 .bg-red-50 {
  border-color: rgba(177, 55, 55, 0.26) !important;
  background: rgba(255, 238, 235, 0.76) !important;
  color: #8d2d2d !important;
}

.account-history-detail-v2 .bg-amber-50 {
  border-color: rgba(138, 106, 82, 0.28) !important;
  background: rgba(255, 249, 241, 0.82) !important;
  color: #76533f !important;
}

.account-history-detail-v2 .bg-green-50 {
  border-color: rgba(65, 128, 93, 0.28) !important;
  background: rgba(235, 246, 238, 0.72) !important;
  color: #2f6b49 !important;
}

.account-history-detail-v2 .rounded-lg,
.account-history-detail-v2 .rounded-md {
  border-radius: 14px !important;
}

.account-history-detail-v2 .rounded-full {
  border-radius: 999px !important;
}


@media (max-width: 1180px) {
  .static-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .static-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .static-inner {
    width: min(100% - 28px, 980px);
    padding: 22px 0 48px;
  }

  .static-card {
    padding: 22px;
  }

  .static-card h1 {
    font-size: 28px;
  }

  .static-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .account-history-detail-v2 {
    width: min(100% - 24px, 980px) !important;
    padding: 0 !important;
  }

  .account-history-detail-v2 > .bg-white {
    padding: 20px !important;
  }

  .account-history-detail-v2 h1 {
    font-size: 28px !important;
  }

  .account-history-detail-v2 h2 {
    margin: 12px 0 6px !important;
  }

  .account-history-detail-v2 .mb-6 {
    margin-bottom: 0 !important;
  }

  .account-history-detail-v2 .grid {
    gap: 4px !important;
  }

  .account-payment-option {
    align-items: flex-start;
    gap: 10px;
  }

  .account-payment-logo {
    grid-column: 1 / -1;
  }
}

.ahi-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #e5e7eb;
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.ahi-paid-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.ahi-invoice-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.25);
  white-space: nowrap;
  text-decoration: none;
}

.ahi-invoice-badge:hover {
  background: #bfdbfe;
  color: #1e3a8a;
}

.ahi-prod-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 88px;
}

.ahi-prod-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.ahi-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ahi-release-badge {
  display: inline-block;
  padding: 3px 9px;
  background: #fff7ed;
  border: 1px solid #f97316;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #c2410c;
  line-height: 1.4;
}

.ahi-release-badge-desktop { margin-top: 5px; }
.ahi-release-badge-mobile  { display: none; }

@media (max-width: 640px) {
  .ahi-release-badge-desktop { display: none; }
  .ahi-release-badge-mobile {
    display: block;
    margin-top: 5px;
  }
  .ahi-release-badge-mobile .ahi-release-badge {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    border-radius: 8px;
  }
}
