/* =========================================================================
   Modern Theme Layer
   Loaded AFTER directsecuritysupply.css (and other legacy stylesheets) so
   these rules win on equal/near-equal specificity without needing
   !important everywhere. Keeps existing brand colors, modernizes the
   visual language: soft shadows, rounded corners, whitespace, clean type.
   ========================================================================= */

:root {
  --brand-primary: #003399;
  --brand-primary-dark: #002266;
  --brand-primary-light: #E6ECF9;
  --brand-accent: #003399;
  --brand-accent-dark: #002266;

  --ink-900: #14141f;
  --ink-700: #3a3a4a;
  --ink-500: #6b7280;
  --ink-300: #9ca3af;
  --ink-100: #e5e7eb;
  --ink-50: #f6f7fb;

  --surface: #ffffff;
  --surface-muted: #f8f9fc;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 31, 0.06), 0 1px 1px rgba(20, 20, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 31, 0.08), 0 2px 6px rgba(20, 20, 31, 0.06);
  --shadow-lg: 0 20px 48px rgba(20, 20, 31, 0.14), 0 6px 16px rgba(20, 20, 31, 0.08);

  --transition-fast: 0.16s ease;
  --transition-med: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
   Base type & surfaces
   ------------------------------------------------------------------------- */

body {
  color: var(--ink-700);
  background-color: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

/* Shared box model (height/padding/border-width/radius) for every main CTA
   button across the site, regardless of color scheme. !important because
   directsecuritysupply.css (legacy) defines several older .btn/.btn-buy/
   .btn-cart rules with their own padding and border-width that otherwise
   leak through depending on source order and element type - this is the
   single source of truth for box model. Fixed height + inline-flex centering
   also makes <button>, <a class="btn">, and <input type="button" class="btn">
   render at the identical height, since each element type has different
   default box-model/chrome. Color (background/text/border-color) is set
   separately below (and, for .btn-outline-login, per-page) so pages that
   intentionally swap the color scheme keep their own colors while sharing
   this sizing. */
.btn.btn-buy,
.btn.btn-cart,
.btn.btn-create-acct,
.btn.btn-learn,
.btn.btn-success,
.btn.btn-border,
.btn.btn-view-all,
.btn.btn-shop-now,
.btn.btn-back,
.btn-outline-login,
.btn-upper.btn.btn-primary.checkout-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 46px;
  padding: 0 26px !important;
  border-radius: var(--radius-sm) !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
}

/* Flat, no-animation color scheme: solid brand background, simple
   black-border/white-bg/black-text swap on hover. No transitions, shadows,
   or sliding accents. */
.btn.btn-buy,
.btn.btn-cart,
.btn.btn-create-acct,
.btn.btn-learn,
.btn.btn-success,
.btn.btn-border,
.btn.btn-view-all,
.btn.btn-shop-now {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary) !important;
  box-shadow: none;
}

.btn.btn-buy:hover,
.btn.btn-cart:hover,
.btn.btn-create-acct:hover,
.btn.btn-learn:hover,
.btn.btn-success:hover,
.btn.btn-border:hover,
.btn.btn-view-all:hover,
.btn.btn-shop-now:hover {
  background: #fff;
  color: #000;
  border-color: #000 !important;
  box-shadow: none;
}

/* Base .btn fallback for any plain .btn usage not covered by a named
   variant above (e.g. dropdown-toggle sort buttons). */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  cursor: pointer;
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
  box-shadow: none;
}

.btn:hover {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* Cart "Remove" icon button: plain trash icon, no button chrome. The .btn
   base rule above paints every .btn navy with a border by default, which
   was covering directsecuritysupply.css's intended delete.svg icon with a
   solid pill - reset background/border/shadow here so only the icon shows.
   .btn:hover sets the `background` shorthand (background: #fff), which
   resets background-image to none - re-declare the icon explicitly on
   hover too, or it disappears instead of just losing its navy fill. */
.btn.btn-delete,
.btn.btn-delete:hover {
  background-color: transparent !important;
  background-image: url(../imgs/page/wishlist/delete.svg) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------
   Floating-label form fields
   ------------------------------------------------------------------------- */

.did-floating-label-content {
  position: relative;
}

.did-floating-input,
.did-floating-select,
select.did-floating-select {
  border: 1.5px solid var(--ink-100) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--surface);
  /* padding: 14px 16px !important; */
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.did-floating-input:focus,
.did-floating-select:focus,
select.did-floating-select:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px var(--brand-primary-light);
  outline: none;
}

select.did-floating-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23003399' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  padding-right: 36px !important;
}

.did-floating-label {
  color: var(--ink-500);
}

.did-floating-input:focus ~ .did-floating-label,
.did-floating-select:focus ~ .did-floating-label {
  color: var(--brand-primary);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.header {
  border-bottom: none;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  /* position: sticky; */
  top: 0;
  z-index: 200;
}

.header .main-header {
  padding: 0px 12px;
  gap: 24px;
}

.header-logo img {
  max-height: 46px;
  width: auto;
}

.menu-topbar-right .nav-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-topbar-right .nav-small a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 15px;
}

.menu-topbar-right .nav-small a:hover {
  color: var(--brand-primary);
}

.menu-topbar-right .nav-small a .icon {
  color: var(--brand-primary);
}

/* Search box */
.header-search .box-header-search {
  /* background: var(--surface-muted); */
  border-radius: var(--radius-md);
  padding: 2px;
}

.header-search .did-floating-input {
  border: 1.5px solid transparent !important;
  background-color: var(--surface-muted);
  border-radius: var(--radius-md) !important;
}

.header-search .did-floating-input:focus {
  background-color: var(--surface);
  border-color: var(--brand-primary) !important;
}

/* Icon actions (account / wishlist / cart) */
.header-shop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-shop .icon-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-700);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.header-shop .icon-list:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.header-shop .number-item {
  background: var(--brand-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Account & Cart dropdown panels */
.dropdown-account,
.dropdown-cart {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  margin-top: 12px;
}

.dropdown-account ul li a,
.dropdown-account ul li {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--ink-700);
  transition: background-color var(--transition-fast);
}

.dropdown-account ul li a:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.dropdown-cart .item-cart {
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: background-color var(--transition-fast);
}

.dropdown-cart .item-cart:hover {
  background: var(--surface-muted);
}

.dropdown-cart .cart-image img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-100);
}

/* Category / bottom nav bar - keep the original solid navy bar ("blue line") */
.header-bottom {
  background: var(--brand-primary);
  border-top: none;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.header-bottom .btn-category {
  background: var(--brand-primary-dark) !important;
  border-radius: var(--radius-sm);
  border: none;
  padding: 12px 18px;
}

.header-bottom .header-nav .main-menu {
  gap: 4px;
}

.header-bottom .header-nav .main-menu > li {
  position: relative;
}

.header-bottom .header-nav .main-menu > li > a {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 16px;
  position: relative;
}

.header-bottom .header-nav .main-menu > li > a:hover,
.header-bottom .header-nav .main-menu > li.Menuactive > a {
  color: #ffffff;
  background-color: transparent;
}

.main-menu .sub-menu {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: none;
  padding: 14px;
}

.main-menu .sub-menu .text-link {
  color: var(--ink-700);
  transition: color var(--transition-fast);
}

.main-menu .sub-menu li > a:hover .text-link {
  color: var(--brand-primary);
}

/* Mobile burger */
.burger-icon-white span {
  background-color: var(--ink-700);
}

.burger-icon {
  border-radius: 50%;
  padding: 10px;
  margin: -10px;
  transition: background-color var(--transition-fast);
}

.burger-icon:hover {
  background-color: var(--brand-primary-light);
}

/* -------------------------------------------------------------------------
   Product / category listing cards
   ------------------------------------------------------------------------- */

.card-grid-style-3 {
  background: var(--surface) !important;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition-med);
}

.card-grid-style-3:hover {
  box-shadow: var(--shadow-md);
}

.card-grid-style-3 .card-grid-inner {
  border-radius: var(--radius-sm);
  padding: 16px;
}

.card-grid-style-3 .card-grid-inner .image-box {
  line-height: normal;
  align-items: center;
  padding: 12px 0 16px;
}

.card-grid-style-3 .card-grid-inner .image-box img {
  min-height: auto;
  transition: transform var(--transition-med);
}

.card-grid-style-3:hover .card-grid-inner .image-box img {
  transform: scale(1.04);
}

.card-grid-style-3 .card-grid-inner .info-right {
  border-top: 1px solid var(--ink-100);
  padding-top: 12px;
  margin-top: 4px;
}

.card-grid-style-3 .card-grid-inner .info-right h4.color-brand-3 {
  color: var(--ink-900) !important;
  font-size: 15px;
}

.card-grid-style-3 .card-grid-inner .info-right a.color-brand-3:hover {
  color: var(--brand-primary) !important;
}

/* Category head banner */
.head-main.bd-gray-200 {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 16px 0;
}

.breadcrumb li a {
  transition: color var(--transition-fast);
}

.breadcrumb li a:hover {
  color: var(--brand-primary) !important;
}

/* -------------------------------------------------------------------------
   Checkout accordion
   ------------------------------------------------------------------------- */

.box-carts .accordion {
  gap: 16px;
}

.accordion label {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.accordion label:not(:last-of-type) {
  border-bottom: none;
}

.accordion input:checked + label {
  border-bottom: none;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-content {
  background-color: var(--surface);
  border: 1px solid var(--ink-100);
  border-top: none;
  border-bottom-left-radius: var(--radius-sm) !important;
  border-bottom-right-radius: var(--radius-sm) !important;
  padding: 0 24px !important;
  box-shadow: var(--shadow-sm);
}

.accordion input[type="radio"]:checked + label + .accordion-content {
  padding: 20px 24px !important;
}

/* -------------------------------------------------------------------------
   Product detail: price + quantity stepper
   ------------------------------------------------------------------------- */

.price-main.color-brand-2 {
  color: var(--brand-primary) !important;
  font-size: 1.3em;
}

.increment-wrapper .button.dec,
.increment-wrapper .button.inc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  border: 1.5px solid transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.increment-wrapper .button.dec i,
.increment-wrapper .button.inc i {
  color: #fff;
  pointer-events: none;
}

.increment-wrapper .button.dec:hover,
.increment-wrapper .button.inc:hover {
  background-color: var(--brand-primary-dark) !important;
  transform: none;
  box-shadow: none;
}

/* -------------------------------------------------------------------------
   Homepage "Specials & Promotions" cards (.card / .card-title-text)
   ------------------------------------------------------------------------- */

.head-img-card .card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-med), border-color var(--transition-med);
}

.head-img-card .card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}

.head-img-card .card .img-hover-zoom {
  display: block;
  overflow: hidden;
}

.head-img-card .card .img-hover-zoom img {
  transition: transform var(--transition-med);
}

.head-img-card .card:hover .img-hover-zoom img {
  transform: scale(1.06);
}

.head-img-card .card .card-body {
  padding: 14px 16px !important;
}

.card-title-text {
  display: block;
  cursor: pointer;
  color: var(--ink-900);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.card-title-text:hover {
  color: var(--brand-primary);
}

/* -------------------------------------------------------------------------
   Registration / long-form pages (new-customer, b2b, b2c, direct-registration)
   These still use plain Bootstrap-era .form-control / .form-group markup.
   ------------------------------------------------------------------------- */

.contact-page {
  background: var(--surface-muted);
  padding: 32px 0 48px;
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
}

.contact-title h3 {
  color: var(--ink-900);
}

.form-control,
.form-control.unicase-form-control {
  border: 1.5px solid var(--ink-100) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px;
  font-size: 15px;
  background-color: var(--surface);
  color: var(--ink-900);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-control.unicase-form-control:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px var(--brand-primary-light);
  outline: none;
}

select.form-control,
select.form-control.unicase-form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--surface) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23003399' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 10px;
  padding-right: 36px;
}

.form-group .info-title,
.form-group > label {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  display: inline-block;
}

.form-group.all-border {
  border: none;
}

/* Box model (height/padding/border) for these two comes from the shared
   .btn-back / checkout-page-button rule near the top of this file - only
   color lives here. */
.btn-upper.btn.btn-primary.checkout-page-button {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: none;
}

.btn-upper.btn.btn-primary.checkout-page-button:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}

/* Back / secondary navigation button reused across registration forms */
.btn.btn-back {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: none;
}

.btn.btn-back:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}

/* -------------------------------------------------------------------------
   Login page: balance the two-column layout with matching cards
   ------------------------------------------------------------------------- */

.login-page {
  background: var(--surface-muted);
  padding-top: 8px;
  padding-bottom: 24px;
}

@media (min-width: 992px) {
  .login-page .row.align-items-stretch > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .login-page .row.align-items-stretch > [class*="col-"] > * {
    width: 100%;
  }
}

.login-page .form-register {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
}

.login-page .regist-content.bg-19 {
  background: var(--surface-muted);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 40px !important;
}

.login-page a#fp1,
.login-page a.color-gray-500 {
  transition: color var(--transition-fast);
  cursor: pointer;
}

.login-page a#fp1:hover {
  color: var(--brand-primary) !important;
  text-decoration: underline;
}

.login-page .head-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-900);
}

@media (max-width: 991px) {
  .login-page .form-register,
  .login-page .regist-content.bg-19 {
    padding: 28px 24px !important;
  }
}

@media (max-width: 767.98px) {
  .menu-topbar-right .nav-small{
    justify-content: left;
  }
  .header .main-header {
  padding: 0px 10px;
 }
}

/* -------------------------------------------------------------------------
   Checkout page
   ------------------------------------------------------------------------- */

.checkout-page .box-carts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-page .accordion label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.checkout-page .accordion-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.checkout-page .accordion-content .form-group label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Legacy markup pairs a static label ("Ship Via") above every field with a
   second .did-floating-label ("Ship Via *") absolutely positioned over the
   input's top border to carry the required-field asterisk. In practice the
   outer static label doesn't render with visible text in this layout, so
   the floating label is the only field name the user actually sees -- it
   must stay visible and readable, just repositioned so it sits cleanly on
   the border instead of overlapping the value text. */
.checkout-page .did-floating-label-content {
  margin-top: 14px;
}

.checkout-page .did-floating-label-content > .did-floating-label {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  background: var(--surface);
  padding: 0 6px;
  line-height: 1.2;
  z-index: 1;
}

.checkout-page .did-floating-input,
.checkout-page .did-floating-select {
  padding: 12px 14px !important;
  height: auto !important;
}

.checkout-page select.did-floating-select {
  padding: 12px 36px 12px 14px !important;
}

/* Disabled fields: legacy inline styles/attrs force a near-black "darkgray"
   fill with default (unreadable) text color; repaint them as a clearly
   inactive but legible muted surface consistent with the rest of the form. */
.checkout-page .did-floating-input:disabled,
.checkout-page .did-floating-select:disabled {
  background-color: var(--surface-muted) !important;
  color: var(--ink-500) !important;
  border-color: var(--ink-100) !important;
  cursor: not-allowed;
}

/* directsecuritysupply.css locks #headEmail as non-editable via
   pointer-events:none + a hardcoded darkgray fill (id selector, so it wins
   over the class rule above). Keep it read-only but legible instead. */
#headEmail {
  background-color: var(--surface-muted) !important;
  color: var(--ink-700) !important;
}

.checkout-page .shipping-address-card {
  background: var(--surface-muted);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 4px 0 15px;
}

.checkout-page .shipping-address-card .review-field {
  grid-template-columns: 90px 1fr;
}

.checkout-payment-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px dashed var(--ink-100);
}

.checkout-payment-section h3 {
  color: var(--ink-900);
  font-size: 20px;
  font-weight: 700;
}

.checkout-actions {
  padding-top: 8px;
  gap: 12px;
}

.checkout-checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}

.checkout-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  border: 1.5px solid var(--ink-100);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.checkout-checkbox:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkout-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkout-checkbox:focus-visible {
  box-shadow: 0 0 0 3px var(--brand-primary-light);
  outline: none;
}

/* .accordion label (legacy, directsecuritysupply.css) is a bare descendant
   selector that paints every <label> anywhere inside .accordion navy with
   white text -- including form labels several levels deep in
   .accordion-content, not just the accordion section headers it was meant
   for. Override with equal specificity plus source order. */
.checkout-page .accordion .checkout-checkbox-field label {
  background: none;
  padding: 0;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .checkout-page .shipping-address-card {
    margin: 4px 0 15px;
  }
}

/* -------------------------------------------------------------------------
   Review order page
   ------------------------------------------------------------------------- */

.review-order-page .review-order-toolbar {
  gap: 12px;
}

.review-order-page .review-order-toolbar:last-of-type {
  margin-top: 24px;
}

.review-order-page .order-success-card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
}

.review-order-page .order-success-card .alert-icon i {
  color: var(--brand-primary);
}

/* Single stacked column: order info, then items, then order summary.
   #firstdiv is also what the print feature clones verbatim into a popup
   with its own legacy stylesheet, so the id stays put -- only how it lays
   out on screen changes. */
.review-order-page .review-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-order-page .review-info-card,
.review-order-page .review-items-card,
.review-summary-box {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.review-order-page .review-info-card-title {
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  padding: 14px 20px;
}

.review-order-page .review-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  padding: 20px;
}

.review-order-page .review-info-block-title {
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--brand-primary-light);
}

/* Label/value row -- shared by the review-order info cards and the
   checkout page's read-only shipping-address display. */
.review-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 12px;
  padding: 4px 0;
  align-items: start;
}

.review-field-label {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 1px;
}

.review-field-value {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.review-field-value:empty::before {
  content: "\2014";
  color: var(--ink-300);
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .review-field {
    grid-template-columns: 1fr;
  }
}

.review-order-page .review-info-notes {
  border-top: 1px solid var(--ink-100);
  padding: 16px 20px 20px;
}

.review-order-page .review-info-notes-text {
  color: var(--ink-700);
  margin: 0;
  min-height: 1.2em;
}

.review-order-page .review-info-notes-empty {
  color: var(--ink-300);
}

.review-order-page .review-items-card #rvtable {
  margin: 0;
}

.review-order-page .review-items-card .table-responsive {
  padding: 8px 20px 20px;
}

.review-order-page #rvtable th {
  background: var(--surface-muted);
  color: var(--ink-700);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--ink-100);
}

.review-order-page #rvtable td {
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
}

.review-order-page #rvtable .cart-image img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-100);
}

.review-order-page #rvtable .cart-product-description {
  color: var(--ink-900);
  font-size: 15px;
}

.review-summary-box-body {
  padding: 20px;
}

.review-summary-box-body h6 {
  color: var(--ink-900);
  margin: 0;
}

.review-summary-box-total {
  border-top: 1.5px solid var(--ink-100) !important;
  padding-top: 12px;
  margin-top: 4px;
}

.review-summary-box-total h6,
.review-summary-box-total span {
  font-size: 17px;
  color: var(--brand-primary);
}

@media (max-width: 767.98px) {
  .review-order-page .review-info-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Order history page
   ------------------------------------------------------------------------- */

.order-history-page .dropdown-sort .dropdown-toggle {
  background: var(--surface);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 14px !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.order-history-page .dropdown-sort .dropdown-toggle:hover {
  border-color: var(--brand-primary-light);
}

.order-history-page .dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.order-history-page .dropdown-menu .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.order-history-page .dropdown-menu .dropdown-item:hover,
.order-history-page .dropdown-menu .dropdown-item.active {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

/* Navy card-title bar shared by every "card" section across checkout,
   review-order and order-management pages -- keeps section headers
   consistent app-wide, distinct from the gray column headers inside a
   data table (th stays --surface-muted everywhere, see below). */
.order-history-card-title {
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: -24px -24px 20px;
  padding: 14px 24px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.order-history-filters {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  overflow: hidden;
}

.order-history-results {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  overflow: hidden;
}

.order-history-results .rwd-table {
  margin-top: 0;
}

.order-history-results .rwd-table th {
  background: var(--surface-muted);
  color: var(--ink-700);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--ink-100);
}

.order-history-results .rwd-table td {
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-700);
  transition: background-color var(--transition-fast);
}

.order-history-results .rwd-table tr.cpointer:hover td {
  background: var(--surface-muted);
  color: var(--brand-primary);
}

.order-history-results .pagination .btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 20px;
  box-shadow: none;
}

.order-history-results .pagination .btn-primary:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}

/* -------------------------------------------------------------------------
   Order management pages (pending-order, back-orders, invoices, order-view,
   customer-item-history) -- shared navy card-title bar, consistent with
   checkout's accordion headers and review-order's card titles.
   ------------------------------------------------------------------------- */

.order-mgmt-card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  overflow: hidden;
}

.order-mgmt-card-title {
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: -24px -24px 20px;
  padding: 14px 24px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.order-mgmt-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.order-mgmt-card-title-text {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.order-mgmt-card-subtitle {
  color: var(--ink-500);
  font-size: 13px;
  margin: 0 0 16px;
}

/* Order-view top toolbar: Back / order number / print actions in one row */
.order-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.order-view-toolbar .head-text {
  margin: 0;
  font-size: 22px;
  white-space: nowrap;
}

.order-view-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 767.98px) {
  .order-view-toolbar {
    justify-content: center;
    text-align: center;
  }

  .order-view-toolbar-actions {
    justify-content: center;
  }
}

/* Order totals box on order-view: sits right-aligned at roughly half width,
   matching review-order's Sub Total/Total layout proportions. */
.order-view-totals-row {
  display: flex;
  justify-content: flex-end;
}

.order-view-totals-row .review-summary-box {
  width: 100%;
  max-width: 420px;
}

@media (max-width: 767.98px) {
  .order-view-totals-row {
    justify-content: stretch;
  }

  .order-view-totals-row .review-summary-box {
    max-width: none;
  }
}

.order-mgmt-sort-label {
  color: rgba(255, 255, 255, 0.85);
}

.order-mgmt-card-title .dropdown-sort .dropdown-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 12px !important;
  transition: background-color var(--transition-fast);
}

.order-mgmt-card-title .dropdown-sort .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.order-mgmt-card-title .dropdown-sort .dropdown-toggle::after {
  filter: invert(1);
}

.order-mgmt-card #quotealert,
.order-mgmt-card .alert {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.order-mgmt-card .rwd-table {
  margin-top: 0;
}

.order-mgmt-card .rwd-table th {
  background: var(--surface-muted);
  color: var(--ink-700);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--ink-100);
}

.order-mgmt-card .rwd-table td {
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-700);
  transition: background-color var(--transition-fast);
}

.order-mgmt-card .rwd-table tr[class*="cpointer"]:hover td,
.order-mgmt-card .rwd-table tr.cursorp:hover td {
  background: var(--surface-muted);
  color: var(--brand-primary);
}

/* Product-list tables (purchase-history, customer-item-history) use the
   generic .rwd-table 1em left/right cell padding meant for plain data
   tables; with an image + product-info column that padding reads as
   wasted gutter, so trim it back and let content sit closer to the card
   edge while keeping comfortable vertical rhythm. */
.order-mgmt-card .product-wishlist .rwd-table th,
.order-mgmt-card .product-wishlist .rwd-table td {
  padding: 12px 8px;
}

.order-mgmt-card .product-wishlist .rwd-table td:first-child,
.order-mgmt-card .product-wishlist .rwd-table th:first-child {
  padding-left: 4px;
}

.order-mgmt-card .product-wishlist .rwd-table td:last-child,
.order-mgmt-card .product-wishlist .rwd-table th:last-child {
  padding-right: 4px;
}

.order-mgmt-card .pagination,
.order-mgmt-card .row.center {
  margin-top: 16px;
}

.order-mgmt-card .pagination .btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 20px;
  box-shadow: none;
}

.order-mgmt-card .pagination .btn-primary:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}

.order-mgmt-card .pagination-controls {
  display: flex;
}

.order-mgmt-card .pagination-controls ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-mgmt-card .pagination-controls .ngx-pagination li {
  border-radius: var(--radius-sm);
}

.order-mgmt-card .pagination-controls a,
.order-mgmt-card .pagination-controls .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.order-mgmt-card .pagination-controls a:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.order-mgmt-card .pagination-controls .current {
  background: var(--brand-primary);
  color: #fff;
}

@media (max-width: 767.98px) {
  .order-mgmt-card {
    padding: 18px;
  }

  .order-mgmt-card-title {
    margin: -18px -18px 16px;
    padding: 12px 18px;
  }
}