:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --soft-blue: #e3f2fd;
  --blue: #0d6efd;
  --blue-dark: #084298;
  --surface: #ffffff;
  --soft: #f8f9fa;
  --success-soft: #e9f8f1;
  --warning-soft: #fff8e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}

body.legacy-product-page {
  background-color: #eee;
  padding-bottom: 70px;
}

.site-messages {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 28px));
}

.site-message {
  border: 1px solid #badbcc;
  background: #d1e7dd;
  color: #0f5132;
  border-radius: 4px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.site-message-error {
  border-color: #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.admin-tool-banner {
  position: relative;
  z-index: 20;
  height: 0;
  background: #e5e7eb;
}

.admin-tool-banner:has(.admin-tool-toggle:checked) {
  height: auto;
}

.admin-tool-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-tool-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
  background: #111827;
  color: #fff;
  border-bottom: 3px solid #0d6efd;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.admin-tool-toggle:checked ~ .admin-tool-panel {
  max-height: 320px;
}

.admin-tool-tab {
  position: absolute;
  top: auto;
  bottom: auto;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 38px;
  margin: 0;
  border-radius: 4px 0 0 4px;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.admin-tool-tab::after {
  content: "▾";
  margin-left: 8px;
  font-size: .9rem;
}

.admin-tool-toggle:checked ~ .admin-tool-tab::after {
  content: "▴";
}

.admin-tool-close-text {
  display: none;
}

.admin-tool-toggle:checked ~ .admin-tool-tab .admin-tool-open-text {
  display: none;
}

.admin-tool-toggle:checked ~ .admin-tool-tab .admin-tool-close-text {
  display: inline;
}

.admin-tool-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 116px 16px 18px;
}

.admin-tool-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.admin-tool-heading span {
  color: #93c5fd;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .8rem;
}

.admin-tool-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(260px, 2.5fr) minmax(110px, .7fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-tool-form label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #dbeafe;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-tool-form select,
.admin-tool-form input[type="url"],
.admin-tool-form input[type="number"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 7px 9px;
  background: #fff;
  color: #111827;
  font-size: .95rem;
}

.admin-tool-form button {
  min-height: 40px;
  border-color: #22c55e;
  background: #22c55e;
  color: #052e16;
}

.admin-tool-form button:hover {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.admin-tool-empty {
  margin: 0;
  color: #d1d5db;
}

a {
  color: #0a58ca;
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.navbar-expand-lg {
  margin-top: 90px;
  background-color: #e3f2fd;
}

.navbar-brand {
  width: 220px;
}

.navbar-brand img {
  position: absolute;
  bottom: -5px;
  width: 220px;
}

.page {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.legacy-product-page .page {
  max-width: none;
  padding: 0 0 64px;
}

.legacy-bottom-nav {
  margin-top: 0;
  background-color: #e3f2fd;
}

.breadcrumbs-n-title {
  background: linear-gradient(180deg, #e9ecef 0, #e9ecef 42px, #08305f 42px, #08305f 140px);
}

.breadcrumbs-n-title .container {
  max-width: 1110px;
}

.lens-image {
  width: 245px;
  height: 130px;
  object-fit: cover;
  display: block;
}

.h1-wrapper {
  min-height: 98px;
  display: flex;
  align-items: center;
}

.h1-wrapper h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 .5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

hr,
.brand-section {
  border-bottom: 1px solid var(--line);
}

.catalog-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.brand-section {
  padding: 14px 0 24px;
}

.brand-section h2 {
  margin-bottom: 12px;
}

.legacy-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.legacy-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legacy-product-list li {
  margin: 0 0 5px;
}

.legacy-product-list a {
  display: inline-block;
  padding: 1px 0;
}

.section {
  margin-top: 34px;
}

.section.compact {
  margin-top: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.lead,
.muted,
.eyebrow {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.eyebrow,
.muted {
  margin: 0 0 8px;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  font-size: .78rem;
}

.search-form {
  display: grid;
  gap: 8px;
  min-width: 320px;
}

.search-form.inline {
  max-width: 520px;
}

.search-form label {
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 8px;
}

input[type="search"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.product-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.list-item,
.pack-block,
.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.list-item p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pills span {
  border: 1px solid #badbcc;
  background: var(--success-soft);
  color: #0f5132;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .875rem;
  white-space: nowrap;
}

.product-detail {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.product-image {
  max-width: 240px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.pack-block {
  margin-top: 16px;
}

.pack-block.selected {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.pack-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.pack-heading h3 {
  color: var(--ink);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.deal-card {
  display: grid;
  gap: 12px;
}

.deal-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.deal-card p {
  margin: 0;
  color: var(--muted);
}

.deal-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.deal-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.deal-card dt {
  color: var(--muted);
}

.deal-card dd {
  margin: 0;
  font-weight: 700;
}

.deal-notes,
.small-note {
  color: var(--muted);
  font-size: .86rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
}

th,
td {
  padding: 11px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  background: var(--soft);
}

.empty {
  background: var(--warning-soft);
  border: 1px solid #ffe69c;
  border-radius: 6px;
  padding: 14px;
  color: #664d03;
}

.block-price {
  font-size: 2rem;
  font-weight: bold;
}

.hr-calculator-total {
  margin-top: 12px;
  margin-bottom: 12px;
  border-width: 2px;
  border-color: silver;
}

.calculator-title {
  color: #cc0000;
  font-weight: bold;
  margin-bottom: .4rem;
}

.calculator-field {
  width: auto;
  overflow: hidden;
  height: 100%;
}

.calculator-field .l1 {
  float: left;
  padding-right: 10px;
}

.calculator-field .l2 {
  width: auto;
  overflow: hidden;
  height: 75%;
  border-bottom: 1px dotted silver;
}

.calculator-value {
  float: right;
  padding-left: 10px;
  font-weight: bold;
}

.bottom-line {
  color: #fff;
  background: #cc0000;
  font-size: 1.25rem;
  font-weight: 700;
  padding: .5rem 1rem;
  text-align: center;
}

.bottom-line-card {
  background: #e3f2fd;
  border-radius: 0;
}

.comes-out {
  font-size: .85rem;
  text-align: right;
}

.legacy-product-page .logo-tabs {
  margin-top: 0;
  max-width: 1110px;
}

.logo-tabs .nav-tabs {
  border-bottom: 0;
}

.logo-tabs .nav-link {
  min-height: 58px;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid #dee2e6;
  border-bottom: 0;
  background: #f8f9fa;
}

.logo-tabs .nav-link.active {
  background: #fff;
  border-top: 4px solid #cc0000;
}

.logo_tab_logo_wrapper {
  height: 25px;
  line-height: 25px;
  margin-top: 4px;
  margin-bottom: 0;
  text-align: center;
}

.logo_tab_logo_wrapper img {
  max-height: 25px;
  max-width: 140px;
}

.merchant-tab-text {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.1;
  color: #222;
}

.maximize-savings {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: #cc0000;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.offer-details-item {
  position: relative;
}

.card-details {
  min-height: 120px;
}

.card-left-title {
  background: #004085;
  color: #fff;
  font-weight: 700;
  padding: .35rem .75rem;
  text-transform: uppercase;
}

.legacy-product-page .card-left-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-product-page .card-details > .card-body {
  margin-left: 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.legacy-product-page .card-details > .card-body > .card-coupon {
  width: 100%;
}

.legacy-product-page .card-details > .card-body p:last-child {
  margin-bottom: 0;
}

.card-coupon-discount-description {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .legacy-link-grid,
  .deal-grid {
    column-count: 1;
    grid-template-columns: 1fr;
  }

  .catalog-intro,
  .list-item,
  .product-detail,
  .pack-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    min-width: 0;
    width: 100%;
  }

  .nav {
    padding: 0 16px;
  }

  .page {
    padding: 24px 16px 48px;
  }

  body.legacy-product-page {
    padding-bottom: 96px;
  }

  .legacy-product-page .page {
    padding: 0 0 96px;
  }

  .legacy-bottom-nav .navbar-brand img {
    width: 95px;
  }

  .legacy-bottom-nav .navbar-brand {
    width: 95px;
  }

  .admin-tool-inner {
    padding: 48px 14px 14px;
  }

  .admin-tool-tab {
    top: auto;
    right: 0;
  }

  .admin-tool-toggle:checked ~ .admin-tool-panel {
    max-height: 520px;
  }

  .admin-tool-form {
    grid-template-columns: 1fr;
  }
}
