/* Loaded after production home.css — aligns visible theme with current affordablegemsny.com header reference. */

:root {
  scrollbar-color: #133950 #eef3f5;
  scrollbar-width: thin;
}

html,
body {
  scrollbar-color: #133950 #eef3f5;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #eef3f5;
  border-left: 1px solid #d9e3e8;
}

::-webkit-scrollbar-thumb {
  background: #133950;
  border: 3px solid #eef3f5;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d2c3e;
}

/* Top wholesale bar: navy + white (production JS sometimes hides bar; marketing sites use this treatment). */
section.updateAlert.text-center.Blue-bg,
section.updateAlert.text-center.Blue-bg.slider-gemsny-offers {
  background: #133950 !important;
}

section.updateAlert.text-center.Blue-bg p,
section.updateAlert.text-center.Blue-bg a {
  color: #fff !important;
}

section.updateAlert.text-center.Blue-bg p {
  font-size: 13.2px !important;
}

/* "Create An Account" uses <a class="signbtn"> in React (production used button > a). */
a.signbtn {
  background: #133950;
  padding: 6px 15px;
  color: #fff !important;
  border: 1px solid #133950;
  border-radius: 3px;
  font-size: 15px;
  outline: none !important;
  box-sizing: border-box;
}

a.signbtn:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.customers_trms a.signbtn {
  width: 100%;
  margin: 5px 0;
}

/* Device verify / 2FA — ensure primary actions use brand button color */
button.signbtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Header — match home.css: logo block + bottom gap before nav (avoids overlap with .topnav) */
header .header-main-row {
  align-items: center;
  min-height: 72px;
}

header .mainLogo > a,
header .logo.mainLogo > a {
  margin: 0;
  display: block;
  padding-top: 0;
}

header .mainLogo img {
  max-width: 130px;
  width: 104px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Left / right head elements vertically centered */
header .left_head,
header .right_head {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Sign-in dropdown stacks above nav */
#login_top.position-relative {
  z-index: 10060;
}

header {
  overflow: visible;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  position: relative;
  z-index: 2500;
}

header .desktopMenu.topnav,
header .desktopMenu.topnav .navbar,
header .navbar-collapse,
header .topnav .navbar .navbar-nav .sub-dropdown {
  z-index: 2600;
}

@media (min-width: 992px) {
  section.updateAlert.text-center.Blue-bg,
  section.updateAlert.text-center.Blue-bg.slider-gemsny-offers {
    min-height: 27px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  section.updateAlert.text-center.Blue-bg p {
    padding: 0 !important;
    font-size: 13.2px !important;
    line-height: 27px !important;
    font-weight: 700;
  }

  header .container,
  header .desktopMenu.topnav .container {
    max-width: 1440px;
  }

  header .header-main-row {
    display: flex;
    flex-wrap: nowrap;
    min-height: 76px;
    align-items: center !important;
    position: relative;
  }

  header .left_head,
  header .right_head {
    padding-top: 0;
    padding-bottom: 0;
  }

  header .left_head {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: 42%;
  }

  header .left_head .head_elements {
    display: inline-flex !important;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
  }

  header .left_head > .head_elements > li {
    display: inline-flex;
    align-items: center;
    padding: 0;
    white-space: nowrap;
  }

  header .left_head > .head_elements > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
  }

  header .mainLogo {
    flex: 0 0 190px;
    max-width: 190px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
  }

  header .mainLogo img {
    width: 116px;
  }

  header .right_head {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: 42%;
    z-index: 10050;
  }

  header .right_head .head_elements {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
    max-width: 100%;
    padding: 0;
  }

  header .right_head > .head_elements > li {
    padding: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  header .right_head > .head_elements > li > a,
  header .right_head > .head_elements > li > .position-relative > .signupUser {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    color: #424242;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
  }

  header .desktopMenu.topnav {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
  }

  header .topnav .navbar .navbar-nav > li > a,
  header .topnav .navbar .navbar-nav > li > .nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
  }

  header .right_head .topcart {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7f7f7;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #111;
    cursor: pointer;
  }

  header .right_head .topcart i {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  header .right_head .topcart .counter {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    background: #b40000;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
  }

  header #login_top .signupModal.login_modal.openmodal {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 10070 !important;
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
  }

  header #login_top .signupModal.login_modal.openmodal::before {
    right: 118px;
  }

  header #login_top .signupModal.login_modal .row {
    flex-wrap: wrap;
  }

  header #login_top .signupModal.login_modal .customers_trms {
    min-height: 100%;
  }

  header #login_top .signupModal.login_modal .signup_list {
    display: block;
    margin: 0 0 12px;
    padding: 0;
  }

  header #login_top .signupModal.login_modal .signup_list li {
    display: block;
    white-space: normal;
    line-height: 1.35;
    margin-bottom: 8px;
    padding-left: 20px;
  }

  header #login_top .signupModal.login_modal .loginbox {
    padding: 15px;
  }
}

/* Login dropdown: close control in Login Detail column (visible × even if icon font fails) */
.login-panel-heading {
  margin-bottom: 10px;
}

button.close_icon.login-dropdown-close {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  border: 0;
  flex-shrink: 0;
}

button.close_icon.login-dropdown-close span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: #fff !important;
}

/* Breathing room between header and category nav */
@media (min-width: 992px) {
  header .desktopMenu.topnav {
    margin-top: 0px;
  }
}

header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor {
  display: flex !important;
  align-items: center;
  min-height: 42px;
  gap: 10px;
  padding-left: 48px !important;
  font-weight: 700;
}

header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor:before {
  background-image: url("https://d3kinlcl20pxwz.cloudfront.net/affordablegemsny/img/sprit-gemstones-color.png?format=webp") !important;
  background-repeat: no-repeat !important;
  background-size: 325px auto !important;
  width: 28px !important;
  height: 28px !important;
  left: 12px !important;
  top: 7px !important;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(19, 57, 80, .18);
}

header .topnav .navbar .navbar-nav .sub-dropdown {
  box-shadow: 0 10px 26px rgba(19, 57, 80, .14);
  border: 1px solid #e2e8ec;
}

header .topnav .navbar .navbar-nav .sub-dropdown ul li a {
  border-bottom: 1px solid #e8eef1;
}

header .topnav .navbar .navbar-nav .sub-dropdown ul li:last-child a {
  border-bottom: 0;
}

/* Header gemstone dropdown icons: match the transparent search-filter stones at menu scale. */
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor {
  min-height: 40px;
  padding-left: 44px !important;
}

header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor:before {
  width: 24px !important;
  height: 24px !important;
  left: 12px !important;
  top: 8px !important;
  background-repeat: no-repeat !important;
  background-image: url("/images/sprit-gemstones-color.webp") !important;
  background-size: 325px auto !important;
  box-shadow: inset 0 0 7px rgba(255, 255, 255, .35), 0 2px 7px rgba(19, 57, 80, .14) !important;
}

header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.sapphireblue:before { background-position: -1px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.yellowsapphire:before { background-position: -31px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.pinksapphire:before { background-position: -62px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.whitesapphire:before { background-position: -93px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.purplesapphire:before { background-position: -124px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.lavendersapphire:before { background-position: -155px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.greensapphire:before { background-position: -61px -34px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.padparadschasapphire:before { background-position: -186px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.peachsapphire:before { background-position: -217px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.orangesapphire:before { background-position: -248px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.tealsapphire:before { background-position: -280px -2px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.redspinel:before { background-position: -1px -33px !important; }
header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor.bluespinel:before { background-position: -31px -33px !important; }

@media (max-width: 991px) {
  section.updateAlert.text-center.Blue-bg,
  section.updateAlert.text-center.Blue-bg.slider-gemsny-offers {
    min-height: 46px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
  }

  section.updateAlert.text-center.Blue-bg p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    max-width: 390px;
    padding: 0 !important;
  }

  header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 76px;
    background: #fff;
  }

  header .container {
    max-width: 100%;
  }

  header .left_head,
  header .right_head {
    display: none !important;
  }

  header .header-main-row {
    min-height: 76px;
    align-items: center;
  }

  header .mainLogo {
    flex: 0 0 100%;
    max-width: 100%;
  }

  header .mainLogo img {
    width: 104px;
  }

  header .open-mobile-menu {
    display: inline-flex !important;
    position: absolute;
    left: 14px;
    top: 25px;
    z-index: 1004;
    width: 31px;
    height: 25px;
    padding: 2px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: space-between;
  }

  header .open-mobile-menu.active {
    position: fixed;
    top: 58px;
    left: 24px;
    z-index: 10040;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(19,57,80,.24);
  }

  header .mobile-search-toggle {
    position: absolute;
    left: 56px;
    top: 18px;
    z-index: 1004;
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 50%;
    background: #f4f5f5;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  header .open-mobile-menu.active + .mobile-search-toggle {
    display: none !important;
  }

  header .mobile-search-toggle span {
    width: 14px;
    height: 14px;
    border: 2px solid #1d3038;
    border-radius: 50%;
    display: block;
    position: relative;
  }

  header .mobile-search-toggle span::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -4px;
    background: #1d3038;
    transform: rotate(45deg);
    border-radius: 2px;
  }

  header .mobile-header-search {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    z-index: 10050;
    display: flex !important;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dce5ea;
    box-shadow: 0 8px 22px rgba(19,57,80,.16);
  }

  header .mobile-header-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1px solid #cfd8dc;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
  }

  header .mobile-header-search button {
    height: 38px;
    border: 0;
    background: #133950;
    color: #fff;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 800;
  }

  header .navbar-collapse.show::before {
    content: "Browse Gemstones";
    position: absolute;
    top: 23px;
    left: 78px;
    right: 18px;
    color: #133950;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .03em;
  }

  header .open-mobile-menu span,
  header .navbar-toggler span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #133950;
  }

  header .open-mobile-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  header .open-mobile-menu.active span:nth-child(2) {
    opacity: 0;
  }

  header .open-mobile-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  header .desktopMenu.topnav {
    display: block !important;
    position: static !important;
    width: auto !important;
    z-index: 1002;
  }

  header .desktopMenu.topnav .navbar {
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  header .desktopMenu.topnav .navbar > .container {
    padding: 0;
  }

  header .navbar-toggler {
    display: none;
  }

  header .navbar-collapse {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    height: 100vh;
    padding: 74px 0 20px;
    background: #fff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 10030;
    pointer-events: auto;
  }

  header .navbar-collapse.show {
    left: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  header .navbar-nav {
    align-items: stretch;
    margin: 0 !important;
  }

  header .topnav .navbar .navbar-nav li.nav-item {
    border-bottom: 1px solid #ececec;
  }

  header .topnav .navbar .navbar-nav li.nav-item:before {
    display: none;
  }

  header .topnav .navbar .navbar-nav li a,
  header .topnav .navbar .navbar-nav li .nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    color: #133950;
  }

  header .topnav .navbar .navbar-nav li.dropdownpt > a::after {
    display: none;
  }

  header .topnav .navbar .navbar-nav .sub-dropdown {
    position: static;
    display: block;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: #f8fbfc;
    padding: 0;
  }

  header .topnav .navbar .navbar-nav .sub-dropdown ul {
    margin: 0;
    padding: 0;
  }

  header .topnav .navbar .navbar-nav .sub-dropdown ul li {
    border-top: 1px solid #e4edf1;
  }

  header .topnav .navbar .navbar-nav .sub-dropdown ul li a {
    padding: 11px 20px 11px 42px;
    font-size: 14px;
    font-weight: 500;
    color: #263f4f;
  }

  header .topnav .navbar .navbar-nav .sapphirecolors .gemscolor:before {
    left: 12px;
  }

  header .searchproduct {
    display: block !important;
    padding: 14px 18px;
    border-bottom: 1px solid #ececec;
  }

  header .searchproduct .form-control {
    height: 42px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    font-size: 15px !important;
  }

  header .overlaymenu {
    display: none;
  }

  header .navbar-collapse.show + .overlaymenu {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10020;
  }

  .rightmobile {
    position: absolute;
    right: 13px;
    top: 17px;
    z-index: 1000;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
  }

  .rightmobile a,
  .rightmobile .topcart {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7f7f7;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 18px;
    position: relative;
  }

  .rightmobile .Call_icon_n,
  .rightmobile .Call_email_n {
    display: none !important;
  }

  .rightmobile .counter {
    position: absolute;
    right: -1px;
    top: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b40000;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
  }
}

/* Auth verify / 2FA pages: readable labels + inputs (Bootstrap + home.css can collapse height). */
.auth-verify-page .form-group label.field-label {
  font-size: 14px;
  font-weight: 600;
  color: #133950;
  margin-bottom: 6px;
}

.auth-verify-page .form-control {
  min-height: 42px;
  font-size: 15px !important;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

button.close_icon {
  background: #424242;
  color: #fff;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  margin: 0 11px 0 0;
  display: inline-flex !important;
  padding: 0;
}

button.close_icon:hover {
  color: #fff !important;
}

/* Full-page login: panel not absolutely positioned */
.login-page-shell .signupModal.login_modal {
  position: relative !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.login-page-shell .signupModal.login_modal:before {
  display: none;
}

html,
body {
  min-height: 100%;
  overflow-y: auto !important;
}

body.cart-userlike:not(.modal-open) {
  overflow-y: auto !important;
}

.customer-agent {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  font-family: Arial, sans-serif;
}

.customer-agent-button {
  border: 0;
  border-radius: 999px;
  background: #133950;
  color: #fff;
  box-shadow: 0 12px 32px rgba(19, 57, 80, .25);
  padding: 11px 18px;
  cursor: pointer;
  text-align: left;
}

.customer-agent-button span,
.customer-agent-button strong {
  display: block;
  line-height: 1.1;
}

.customer-agent-button span {
  font-size: 11px;
  opacity: .82;
}

.customer-agent-button strong {
  font-size: 15px;
}

.customer-agent.is-open .customer-agent-button {
  display: none;
}

.customer-agent-panel {
  width: 370px;
  max-width: calc(100vw - 28px);
  height: 560px;
  max-height: calc(100vh - 96px);
  margin-bottom: 12px;
  border: 1px solid #dcebf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 57, 80, .24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.customer-agent-stage {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.customer-agent-preview {
  width: 260px;
  max-width: calc(100vw - 410px);
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #dcebf2;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(19, 57, 80, .18);
  overflow: hidden;
  position: relative;
}

.agent-preview-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  background: rgba(19,57,80,.78);
  color: #fff;
  cursor: pointer;
}

.customer-agent-preview > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f7fafc;
}

.customer-agent-preview > div {
  padding: 12px;
}

.customer-agent-preview span {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #481989;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.customer-agent-preview h4 {
  color: #133950;
  font-size: 17px;
  margin: 0 0 4px;
}

.customer-agent-preview p {
  color: #334;
  font-size: 12px;
  margin: 0 0 10px;
}

.customer-agent-preview dl {
  margin: 0 0 12px;
  display: grid;
  gap: 6px;
}

.customer-agent-preview dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eef3f6;
  padding-bottom: 5px;
}

.customer-agent-preview dt,
.customer-agent-preview dd {
  font-size: 11px;
  margin: 0;
}

.customer-agent-preview dt {
  color: #667;
}

.customer-agent-preview dd {
  color: #133950;
  font-weight: 700;
  text-align: right;
}

.agent-preview-link {
  display: block;
  text-align: center;
  background: #133950;
  color: #fff !important;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.customer-agent-head {
  background: linear-gradient(135deg, #133950, #481989);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.customer-agent-head strong {
  display: block;
  font-size: 16px;
}

.customer-agent-head span {
  display: block;
  font-size: 11px;
  opacity: .85;
}

.customer-agent-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.customer-agent-head-actions button {
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  border-radius: 999px;
  min-width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 9px;
}

.customer-agent-lead {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #edf3f6;
}

.customer-agent-lead-compact {
  display: block;
  padding: 8px 10px;
  background: #f8fcfe;
}

.customer-agent-lead input,
.customer-agent-form input {
  border: 1px solid #d9e5eb;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
  outline: none;
}

.customer-agent-lead small {
  grid-column: 1 / -1;
  color: #587080;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-agent-contact-card {
  margin: 12px;
  padding: 16px;
  border: 1px solid #dbe8ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 57, 80, .08);
  display: grid;
  gap: 8px;
}

.customer-agent-contact-card label {
  color: #133950;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.customer-agent-contact-card input {
  border: 1px solid #d9e5eb;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  outline: none;
}

.customer-agent-contact-card input:focus {
  border-color: #9db7c6;
  box-shadow: 0 0 0 3px rgba(19, 57, 80, .08);
}

.customer-agent-contact-card button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #133950;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.customer-agent-contact-card button:disabled {
  background: #c7d2df;
  cursor: default;
}

.customer-agent-panel .customer-agent-prechat {
  flex: 1;
  background: #f6f9fb;
  padding: 12px;
  border-top: 1px solid #edf3f6;
}

.customer-agent-panel .customer-agent-contact-card {
  margin: 0;
  padding: 16px;
  border: 1px solid #d9e6ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 57, 80, .10);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-agent-panel .customer-agent-contact-title {
  color: #133950;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.customer-agent-panel .customer-agent-contact-card input {
  width: 100%;
  height: 38px;
  border: 1px solid #d6e3ec;
  border-radius: 12px;
  background: #fff;
  color: #17374a;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.customer-agent-panel .customer-agent-contact-card input::placeholder {
  color: #8b9aaa;
}

.customer-agent-panel .customer-agent-contact-card input:focus {
  border-color: #9db7c6;
  box-shadow: 0 0 0 3px rgba(19, 57, 80, .08);
}

.customer-agent-panel .customer-agent-contact-card input:disabled,
.customer-agent-form input:disabled {
  background: #f3f7fa;
  color: #8b9aaa;
  cursor: not-allowed;
}

.customer-agent-contact-error {
  color: #a51d2d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: -2px;
}

.customer-agent-panel .customer-agent-contact-card button {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: #133950;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.customer-agent-panel .customer-agent-contact-card button:disabled {
  background: #c7d2df;
  color: #fff;
  cursor: not-allowed;
  opacity: .78;
  box-shadow: none;
}

.customer-agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f7fafc;
}

.agent-msg {
  margin-bottom: 10px;
}

.agent-msg p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.agent-msg-assistant p {
  background: #fff;
  border: 1px solid #e6eef3;
  color: #21313c;
}

.agent-msg-customer {
  text-align: right;
}

.agent-msg-customer p {
  display: inline-block;
  background: #133950;
  color: #fff;
  text-align: left;
}

.agent-products {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.agent-product {
  border: 1px solid #e3edf2;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  color: #133950;
  text-decoration: none;
}

.agent-product:hover {
  text-decoration: none;
  border-color: #9ec5d5;
}

.agent-product img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.agent-product strong,
.agent-product small,
.agent-product b {
  display: block;
}

.agent-product small {
  color: #556;
  font-size: 11px;
}

.agent-product em {
  display: inline-block;
  color: #481989;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  margin-top: 3px;
}

.agent-education-links {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.agent-education-links a {
  display: block;
  border: 1px solid #d6c48b;
  border-radius: 10px;
  background: #fff9e8;
  color: #133950;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.agent-education-links a:hover {
  border-color: #b7922f;
  text-decoration: none;
}

.customer-agent-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px 10px;
  border-top: 1px solid #edf3f6;
}

.customer-agent-prompts button {
  white-space: nowrap;
  border: 1px solid #cce0ea;
  color: #133950;
  background: #f8fcfe;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  cursor: pointer;
}

.customer-agent-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #edf3f6;
}

.customer-agent-form button {
  border: 0;
  background: #133950;
  color: #fff;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.customer-agent-form button:disabled {
  background: #c7d2df;
  color: #fff;
  cursor: not-allowed;
  opacity: .62;
  box-shadow: none;
}

@media (max-width: 520px) {
  .customer-agent {
    right: 12px;
    bottom: 12px;
  }

  .customer-agent-panel {
    width: calc(100vw - 24px);
  }

  .customer-agent-stage {
    display: block;
  }

  .customer-agent-preview {
    width: calc(100vw - 24px);
    max-width: none;
  }

  .customer-agent-lead {
    grid-template-columns: 1fr;
  }
}

/* ── Home page: feature strip & gemstone cards ──────────────────────── */

/* Feature strip: restore full-width, flush layout — no negative overlap */
.home_wrap .feature_section_slider {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: relative !important;
  z-index: 5;
}

/* Gap between feature strip and Precious / Semi-Precious cards */
.home_wrap .tow-column-banner-section {
  margin-top: 40px !important;
}

/* ── Custom Jewelry page: strip premium-public-pages overrides so the
      original custom_jewellery.css styles show through unchanged ──────── */
.premium-public-pages .customeGallery,
.premium-public-pages .customeJewelryProcess,
.premium-public-pages .aboutSection,
.premium-public-pages .needHelpSection {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: revert !important;
}

/* Gallery: full-width, no container padding */
.premium-public-pages .customeGallery {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.premium-public-pages .customeGallery .swiper-slide img {
  border-radius: 0 !important;
}

/* Process section background */
.premium-public-pages .customeJewelryProcess {
  background: #fff !important;
}

/* About section restores its warm background */
.premium-public-pages .aboutSection {
  background: #FFF7F4 !important;
}

/* Gallery subtitle: keep original plain styling */
.premium-public-pages .customeGallery h2.subtitle {
  color: #333 !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
.premium-public-pages .customeGallery h2.subtitle::after {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────
   EDUCATION PAGE — Visual Enhancements
──────────────────────────────────────────────────────────── */

/* Stone hero card at top of each overview */
.edu-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 16px 0 24px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8eef4;
}
.edu-hero-img {
  flex-shrink: 0;
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
}
/* Listing face photos (`images-stones/…/FM.jpg`) — much larger than bundled education thumbnails */
.edu-hero-img--inventory {
  width: 228px;
  height: 228px;
}
.edu-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
/* Local `/img/…` + CloudFront FM listing shots */
.edu-hero-img--inventory img {
  filter:
    saturate(1.06)
    contrast(1.04);
}
/* CDN legacy Stons thumbnails are extremely small — scaling them up stays soft unless we supersample new art */
.edu-hero-img--legacy-stons img {
  filter:
    saturate(1.28)
    contrast(1.1);
}
.edu-hero-facts {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  align-content: start;
}
.edu-fact {
  display: flex;
  flex-direction: column;
}
.edu-fact-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-bottom: 2px;
}
.edu-fact-value {
  font-size: 13px;
  font-weight: 600;
  color: #133950;
  line-height: 18px;
}

/* Color-grade swatch rings — white backing, no float shadow (photos often have white mattes) */
.edu-color-swatch-ring {
  background: #fff !important;
  border: 1px solid #e8edf2;
  box-shadow: none !important;
}

/* Price reference cards */
.edu-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.edu-price-card {
  padding: 14px 16px;
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.edu-price-card.highlight {
  border-color: #133950;
  background: linear-gradient(135deg, #f0f5fa, #e8f0f8);
  box-shadow: 0 2px 8px rgba(19,57,80,0.12);
}
.edu-price-quality {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-bottom: 5px;
}
.edu-price-range {
  font-size: 17px;
  font-weight: 700;
  color: #133950;
  margin-bottom: 5px;
  line-height: 1.2;
}
.edu-price-note {
  font-size: 11px;
  color: #666;
  line-height: 15px;
}
.edu-price-disclaimer {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  font-style: italic;
}

/* Quality grade table styling */
.qualityGradeTable .grade-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #fff;
}

/* Treatment tag badges */
.edu-treatment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.edu-treatment-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.edu-treatment-tag.best { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.edu-treatment-tag.good { background: #e3f2fd; border-color: #90caf9; color: #0d47a1; }
.edu-treatment-tag.warn { background: #fff8e1; border-color: #ffe082; color: #5d3b00; }
.edu-treatment-tag.bad  { background: #fce4ec; border-color: #f48fb1; color: #880e4f; }

/* Alexandrite Color Change — one card, HTML grid (avoid nested “page in a page” composite PNGs) */
.edu-alex-cc-card {
  max-width: 920px;
  margin: 12px auto 28px;
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 26px);
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 14px;
  box-shadow: none;
  box-sizing: border-box;
}
.edu-alex-cc-card .edu-alex-cc-panel-img {
  display: block;
  width: 100%;
  max-width: min(520px, 100%);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 10px;
  vertical-align: middle;
}
.edu-alex-cc-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 26px);
  align-items: start;
}
.edu-alex-cc-figure {
  margin: 0;
}
.edu-alex-cc-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #445;
}
.edu-alex-cc-lede {
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  max-width: 72ch;
}

/* Responsive */
@media (max-width: 639px) {
  .edu-alex-cc-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .edu-hero { flex-direction: column; gap: 16px; }
  .edu-hero-img {
    width: 120px;
    height: 120px;
    align-self: center;
  }
  .edu-hero-img--inventory {
    width: 172px;
    height: 172px;
  }
  .edu-hero-facts { grid-template-columns: 1fr 1fr; }
  .edu-price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .edu-price-grid { grid-template-columns: 1fr; }
  .edu-hero-facts { grid-template-columns: 1fr; }
}

/* Hero fallback when /images/*.png fails to load */
.edu-hero-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(155deg, #8ecbef 0%, #3e8eab 42%, #1a5270 100%);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.2), inset 0 6px 14px rgba(255, 255, 255, 0.25);
}

/* Legacy education.css hides `table.desktop` on narrow screens — keep grading table visible */
.twoColumnSection table.education-grade-table {
  display: table !important;
}

/* Real-photo strips (aquamarine, etc.) */
.edu-stone-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 4px 0 8px;
}
.edu-stone-photo-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e8eef4;
  background: #fff;
}

/* Keep header navigation above portfolio sticky filters/results/table headers. */
header {
  position: relative;
  z-index: 30000 !important;
  overflow: visible !important;
}

header .desktopMenu.topnav,
header .desktopMenu.topnav .navbar,
header .desktopMenu.topnav .navbar > .container,
header .navbar-collapse,
header .topnav .navbar .navbar-nav,
header .topnav .navbar .navbar-nav li.dropdownpt {
  position: relative;
  z-index: 30010 !important;
  overflow: visible !important;
}

header .topnav .navbar .navbar-nav li.dropdownpt:hover,
header .topnav .navbar .navbar-nav li.dropdownpt:focus-within {
  z-index: 30020 !important;
}

header .topnav .navbar .navbar-nav .sub-dropdown {
  z-index: 30030 !important;
}

#login_top.position-relative {
  z-index: 30040 !important;
}

@media (max-width: 991px) {
  header {
    min-height: 0 !important;
  }

  header .desktopMenu.topnav,
  header .desktopMenu.topnav .navbar,
  header .desktopMenu.topnav .navbar > .container {
    height: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  header #navbarSupportedContent.navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: min(86vw, 360px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 74px 0 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateX(-105%) !important;
    transition: transform 0.25s ease !important;
    z-index: 30030 !important;
  }

  header #navbarSupportedContent.navbar-collapse.show {
    transform: translateX(0) !important;
  }

  header #navbarSupportedContent.navbar-collapse .navbar-nav {
    height: auto !important;
    min-height: 100% !important;
  }

  header #navbarSupportedContent.navbar-collapse.show + .overlaymenu {
    z-index: 30020 !important;
  }
}
