/* QA remediation stylesheet — E-Shopper
   Loaded after main.css / main.rtl.css
*/

/* ---------- Layout safety (responsive / zoom) ---------- */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.theme-color-picker,
.color-options,
#configure-button {
  display: none !important;
}

/* ---------- Header ---------- */
.header_top .contactinfo .store-name-pill span {
  display: inline-block;
  padding: 8px 0;
  color: #696763;
  font-size: 13px;
}

.header_top .social-icons a:focus {
  outline: 2px solid #fe980f;
  outline-offset: 2px;
}

/* Currency + language: right-aligned with header links, vertically centered */
.header-middle .header-middle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-middle .header-middle-left {
  display: flex;
  align-items: center;
}

.header-middle .header-middle-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-middle .logo.pull-left {
  float: none;
  margin: 0;
  flex: 0 0 auto;
}

.header-middle .header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  float: none;
  margin: 0;
  min-height: 40px;
}

.header-middle .header-selectors {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  float: none;
  margin: 0;
  height: 32px;
}

.header-middle .header-selectors .currency-selector,
.header-middle .header-selectors .language-selector,
.header-middle .header-selectors .tax-type-selector {
  display: inline-flex;
  align-items: center;
  margin: 0;
  height: 32px;
  vertical-align: middle;
}

.header-middle .header-selectors select {
  height: 32px;
  min-width: 110px;
  max-width: 160px;
  padding: 0 28px 0 10px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  color: #696763;
  font-size: 13px;
  line-height: 30px;
  border-radius: 0;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0;
}

.header-middle .header-selectors .language-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 32px;
}

.header-middle .header-selectors .language-list li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  height: 32px;
}

.header-middle .shop-menu {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  min-height: 32px;
  height: auto;
}

.header-middle .shop-menu .header-links {
  display: inline-flex;
  align-items: center;
}

.header-middle .shop-menu > ul,
.header-middle .shop-menu .nav.navbar-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  float: none;
}

.header-middle .shop-menu .header-links > ul > li {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding-left: 12px;
  padding-right: 12px;
}

.header-middle .shop-menu .header-links > ul > li > a {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2 !important;
  height: 32px;
  vertical-align: middle;
}

/* Bootstrap .visible-* forces display:block — keep cart aligned with siblings */
.header-middle .shop-menu #topcartlink {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.header-middle .shop-menu #topcartlink > a.ico-cart {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  height: 32px;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.header-middle .shop-menu #topcartlink > a.ico-cart.hidden-md,
.header-middle .shop-menu #topcartlink > a.ico-cart.hidden-lg {
  /* keep Bootstrap hide rules; only override when visible */
}

@media (min-width: 992px) {
  .header-middle .shop-menu #topcartlink > a.ico-cart.hidden-md.hidden-lg {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .header-middle .shop-menu #topcartlink > a.ico-cart.visible-md,
  .header-middle .shop-menu #topcartlink > a.ico-cart.visible-lg {
    display: none !important;
  }

  .header-middle .shop-menu #topcartlink > a.ico-cart.hidden-md.hidden-lg {
    display: inline-flex !important;
  }
}

.header-middle .shop-menu .ico-cart .cart-label,
.header-middle .shop-menu .ico-wishlist .cart-label,
.header-middle .shop-menu .user-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.header-middle .shop-menu .ico-cart .cart-label i,
.header-middle .shop-menu .ico-wishlist .cart-label i,
.header-middle .shop-menu .ico-cart > .fa,
.header-middle .shop-menu .user-account-toggle > .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0 3px 0 0;
  position: relative;
  top: 0;
}

.header-middle .shop-menu .ico-cart .cart-qty,
.header-middle .shop-menu .ico-wishlist .wishlist-qty {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

/* Username → hover dropdown (My Account / Log out) */
.header-links .user-account-dropdown {
  position: relative;
}

.header-links .user-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-links .user-account-toggle .fa-angle-down {
  font-size: 12px;
  margin-left: 2px;
}

.header-links .user-account-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1050;
  min-width: 180px;
  width: max-content;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: start;
}

.header-links .user-account-menu > li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: stretch;
}

.header-links .user-account-menu > li > a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  height: auto !important;
  min-height: 36px;
  padding: 10px 16px !important;
  margin: 0 !important;
  color: #696763;
  white-space: nowrap;
  background: #fff !important;
  line-height: 1.4 !important;
  outline: none !important;
}

.header-links .user-account-menu > li > a:hover,
.header-links .user-account-menu > li > a:focus {
  background: #f7f7f7 !important;
  color: #fe980f !important;
  text-decoration: none;
  outline: none !important;
}

.header-links .user-account-dropdown:hover > .user-account-menu,
.header-links .user-account-dropdown:focus-within > .user-account-menu {
  display: block;
}

html[dir="rtl"] .header-links .user-account-menu {
  right: auto;
  left: 0;
}

@media (max-width: 767px) {
  .header-middle .header-middle-left,
  .header-middle .header-middle-right {
    width: 100%;
  }

  .header-middle .header-middle-right {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .header-middle .header-actions {
    width: 100%;
    justify-content: flex-start;
    float: none;
  }

  .header-middle .header-selectors {
    margin-top: 0;
  }

  .header-middle .shop-menu {
    float: none;
    width: auto;
    margin-top: 0;
  }

  .header-links .user-account-menu {
    right: auto;
    left: 0;
  }
}

/* Sticky compact header affordance on scroll (desktop) */
@media (min-width: 992px) {
  .header-middle.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* ---------- Search ---------- */
.search-box #small-searchterms,
.search_box #small-searchterms {
  min-width: 160px;
  width: 100%;
}

.search-box #small-searchterms::placeholder {
  color: #999;
}

/* ---------- Buttons consistency ---------- */
.btn.btn-primary,
.button-1.btn-primary,
input.button-1.btn-primary,
button.btn-primary,
.get.btn-primary,
#register-button.btn-default {
  background-color: #fe980f !important;
  border-color: #fe980f !important;
  color: #fff !important;
  border-radius: 0;
}

#register-button.btn-default:hover,
.btn.btn-primary:hover {
  background-color: #e68a00 !important;
  border-color: #e68a00 !important;
}

/* ---------- Forms / placeholders (SP-04, SP-05, SP-09, SP-10) ---------- */
.my-account-page .gray-input,
.my-account-page input.form-control,
.opc input.form-control,
.opc input[type="text"],
.opc input[type="email"],
.opc input[type="tel"],
.opc input[type="password"],
.cart input[type="text"],
.product-social-sharing input,
.email-a-friend-page input,
.write-review input,
.write-review textarea,
.advanced-search-page input,
.advanced-search-page select {
  text-align: start;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

html[dir="rtl"] .my-account-page .gray-input,
html[dir="rtl"] .opc input.form-control {
  text-align: right;
}

.login-page .form-group.reversed,
.my-account-page .form-group.reversed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.login-page .forgot-password {
  display: inline-block;
  margin-inline-start: auto;
}

.my-account-page .change-password-recovery-link {
  margin-top: 6px;
  font-size: 13px;
  text-align: end;
}

/* ---------- Cart qty +/- (SP-03) ---------- */
.qty-box {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
}

.qty-box .qty-input {
  width: 56px !important;
  text-align: center;
  margin: 0 4px;
  -moz-appearance: textfield;
}

.qty-box .qty-input::-webkit-outer-spin-button,
.qty-box .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #333;
  line-height: 1;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
}

.qty-btn:hover,
.qty-btn:focus {
  background: #fe980f;
  border-color: #fe980f;
  color: #fff;
  outline: none;
}

/* ---------- Footer trust bar ---------- */
.footer-trust-bar {
  padding: 20px 0;
}

.footer-trust-bar .fa {
  color: #fe980f;
  margin-bottom: 8px;
}

.footer-trust-bar p {
  margin: 0;
  font-size: 13px;
  color: #696763;
}

/* ---------- My account polish (SP-01) ---------- */
.my-account-page .custom-page-box-div {
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 20px;
  margin-bottom: 20px;
}

/* ---------- My Account left navigation ---------- */
.left-sidebar .block-account-navigation {
  background: #fff;
  border: 1px solid #f0f0f0;
  margin-bottom: 30px;
  padding: 0 0 8px;
  overflow: hidden;
}

.left-sidebar .block-account-navigation > .title {
  color: #fe980f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 16px 16px 12px;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 2px solid #fe980f;
  position: relative;
  z-index: 1;
}

/* Kill E-Shopper title underline/mask notch on account nav */
.left-sidebar .block-account-navigation > .title:before,
.left-sidebar .block-account-navigation > .title:after {
  content: none !important;
  display: none !important;
}

.left-sidebar .block-account-navigation .listbox {
  padding: 8px 0 0;
}

.left-sidebar .block-account-navigation .list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-sidebar .block-account-navigation .list > li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f5f5f5;
}

.left-sidebar .block-account-navigation .list > li:last-child {
  border-bottom: 0;
}

.left-sidebar .block-account-navigation .list a {
  display: block;
  padding: 11px 16px 11px 14px;
  color: #696763 !important;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.left-sidebar .block-account-navigation .list a:hover,
.left-sidebar .block-account-navigation .list a:focus {
  background: #fff8ef;
  color: #fe980f !important;
  border-left-color: #fecb7a;
  text-decoration: none;
}

.left-sidebar .block-account-navigation .list a:focus-visible {
  outline: 2px solid #fe980f;
  outline-offset: -2px;
}

.left-sidebar .block-account-navigation .list a.active,
.left-sidebar .block-account-navigation .list li.active > a,
.left-sidebar .block-account-navigation .list li.active > a:hover,
.left-sidebar .block-account-navigation .list li.active > a:focus {
  background: #fe980f;
  color: #fff !important;
  border-left-color: #e8890a;
  font-weight: 500;
}

html[dir="rtl"] .left-sidebar .block-account-navigation > .title {
  text-align: right;
}

html[dir="rtl"] .left-sidebar .block-account-navigation .list a {
  border-left: 0;
  border-right: 3px solid transparent;
  padding: 11px 14px 11px 16px;
}

html[dir="rtl"] .left-sidebar .block-account-navigation .list a:hover,
html[dir="rtl"] .left-sidebar .block-account-navigation .list a:focus {
  border-right-color: #fecb7a;
}

html[dir="rtl"] .left-sidebar .block-account-navigation .list a.active,
html[dir="rtl"] .left-sidebar .block-account-navigation .list li.active > a,
html[dir="rtl"] .left-sidebar .block-account-navigation .list li.active > a:hover,
html[dir="rtl"] .left-sidebar .block-account-navigation .list li.active > a:focus {
  border-right-color: #e8890a;
}

@media (max-width: 991px) {
  .left-sidebar .block-account-navigation {
    margin-bottom: 20px;
  }

  .left-sidebar .block-account-navigation .list a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ---------- PDP sticky ATC (CRO) ---------- */
@media (max-width: 767px) {
  .product-details-page .add-to-cart-panel,
  .product-details-page .add-to-cart {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  }
}

/* ---------- Checkout blink / white box (SP-07) ---------- */
.confirm-order-page .order-confirm-data,
.opc #checkout-step-confirm-order,
.order-confirm-data {
  min-height: 0;
  background: transparent;
}

.opc .step.a-item {
  background: #fff;
}

/* ---------- RTL product cards ---------- */
html[dir="rtl"] .product-item,
html[dir="rtl"] .features_items .product-image-wrapper {
  float: right;
  text-align: right;
}

html[dir="rtl"] .productinfo {
  text-align: center;
}

html[dir="rtl"] .navbar-nav {
  float: right;
}

html[dir="rtl"] .search-box {
  float: left;
}

/* ---------- Quotes / RFQ (SP-18..23) ---------- */
.html-rfq-request-page .page-body,
.request-page .page-body,
.request-list-page .page-body {
  padding-bottom: 48px;
  margin-bottom: 24px;
}

.html-rfq-request-page .common-buttons,
.request-options .common-buttons,
.quote-options .common-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin: 16px 0 8px;
  padding: 0;
  background: transparent;
  text-align: end;
}

.quote-options .common-buttons {
  margin: 0 0 20px;
}

.quote-options .common-buttons:empty {
  display: none;
}

.html-rfq-request-page .common-buttons .button-1,
.request-options .common-buttons .button-1,
.quote-options .common-buttons .button-1,
.request-page .button-1,
.page .rfq-button-2,
a.rfq-button-2 {
  background-color: #fe980f !important;
  border: 1px solid #fe980f !important;
  color: #fff !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  margin: 0 !important;
  min-height: 42px;
  font-size: 14px !important;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  width: auto !important;
  line-height: 1.4 !important;
  cursor: pointer;
}

.html-rfq-request-page .common-buttons .button-1:hover,
.request-options .common-buttons .button-1:hover,
.quote-options .common-buttons .button-1:hover,
.page .rfq-button-2:hover,
a.rfq-button-2:hover {
  background-color: #e68a00 !important;
  border-color: #e68a00 !important;
  color: #fff !important;
  opacity: 1;
}

.html-rfq-request-page .common-buttons .button-1:focus-visible,
.page .rfq-button-2:focus-visible {
  outline: 2px solid #fe980f;
  outline-offset: 2px;
}

.html-rfq-request-page .common-buttons button[name="back-to-cart"],
.html-rfq-request-page .common-buttons #cancel-request {
  background-color: #fff !important;
  color: #fe980f !important;
}

.html-rfq-request-page .common-buttons button[name="back-to-cart"]:hover,
.html-rfq-request-page .common-buttons #cancel-request:hover {
  background-color: #fff7ec !important;
  color: #e68a00 !important;
}

.html-rfq-request-page .common-buttons #delete-request {
  background: #d32f2f !important;
  border-color: #d32f2f !important;
  color: #fff !important;
}

.html-rfq-request-page .common-buttons #delete-request:hover {
  background: #b71c1c !important;
  border-color: #b71c1c !important;
}

.request-page .form-fields .inputs {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.request-page .form-fields .inputs > label:first-child {
  margin: 0;
  font-weight: 600;
  color: #555;
}

.request-page .form-fields .inputs > label + label {
  margin: 0;
  font-weight: 400;
  color: #333;
}

.request-page .form-fields .inputs:has(> textarea) {
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 768px) {
  .request-page .data-table thead {
    display: table-header-group;
  }

  .request-page .data-table {
    text-align: start;
    margin-bottom: 0;
  }

  .request-page .data-table tbody {
    display: table-row-group;
  }

  .request-page .data-table tr {
    display: table-row;
    float: none;
    width: auto;
    margin: 0;
    border: 0;
  }

  .request-page .data-table td {
    display: table-cell;
    border: 1px solid #f0f0f0;
    padding: 12px;
  }

  .request-page .data-table td.product {
    border-bottom: 1px solid #f0f0f0;
    text-align: start;
  }

  .request-page .data-table td > label {
    display: none !important;
  }

  .request-page .data-table td > span {
    display: inline;
    width: auto;
  }

  .request-page .data-table td.picture img {
    width: 70px;
    height: auto;
    display: block;
  }

  .request-page .data-table input[type="number"] {
    width: 110px;
    height: 38px;
  }
}

.request-list-page.account-page .buttons .button-2,
.request-list-page .button-2 {
  background: #fe980f !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: 0 !important;
}

.request-list-page.account-page .buttons .button-2:hover {
  background: #e68a00 !important;
  color: #fff !important;
}

.request-list-page .request-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.request-list-page .request-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fe980f;
  text-transform: uppercase;
}

.request-list-page.account-page .buttons {
  text-align: end;
  margin-top: 12px;
}

.request-list-page .info {
  border-top: 0;
}

.request-page .data-table,
.request-list-page .data-table,
.html-rfq-request-page .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  background: #fff;
}

.request-page .data-table th,
.request-page .data-table td,
.request-list-page .data-table th,
.request-list-page .data-table td {
  border: 1px solid #f0f0f0;
  padding: 12px;
  text-align: start;
  vertical-align: middle;
}

.request-page .data-table thead th,
.request-list-page .data-table thead th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.request-page .fieldset,
.request-list-page .section {
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 16px 20px 20px;
  margin-bottom: 24px;
}

.request-page .fieldset .title,
.request-list-page .section .title {
  margin: 0 0 16px;
  font-size: 18px;
  color: #fe980f;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.request-page textarea.review-text,
.html-rfq-request-page textarea {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  border: 1px solid #ddd;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* ---------- Confirm order / billing+shipping (SP-06, SP-07) ---------- */
.order-review-data {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 24px;
  overflow: visible;
  background: transparent !important;
  min-height: 0;
}

.order-review-data > .billing-info-wrap,
.order-review-data > .shipping-info-wrap {
  flex: 1 1 280px;
  max-width: 100%;
  margin: 0;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.order-review-data .title {
  margin: 0 0 10px;
  font-size: 16px;
  color: #333;
}

.order-review-data .info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-review-data .info-list li {
  padding: 3px 0;
  text-align: start;
  line-height: 1.5;
}

.order-review-data .payment-method-info,
.order-review-data .shipping-method-info {
  margin-top: 20px;
}

.multiple-checkout-confirm-page .custom-page-box-div,
.confirm-order-page .order-confirm-data,
.opc #checkout-step-confirm-order {
  background: #fff;
  min-height: 0;
  animation: none !important;
}

/* kill blink / empty white flash boxes */
.multiple-checkout-confirm-page .box-content:empty,
.opc .step:empty {
  display: none;
}

/* ---------- Review form design (SP-11, SP-12) ---------- */
.write-review,
.product-reviews .write-review {
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 20px;
  margin-top: 20px;
}

.write-review .inputs {
  margin-bottom: 14px;
}

.write-review .inputs label {
  display: block;
  margin-bottom: 6px;
  text-align: start;
}

.write-review input.review-title,
.write-review textarea.review-text {
  width: 100%;
  max-width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.write-review .message-error,
.write-review .field-validation-error,
.write-review .validation-summary-errors {
  display: block;
  color: #d32f2f;
  margin: 8px 0;
  text-align: start;
}

.write-product-review-button,
button.write-product-review-button,
#add-review {
  background-color: #fe980f !important;
  border: 1px solid #fe980f !important;
  color: #fff !important;
  border-radius: 0;
  padding: 10px 20px;
  text-transform: uppercase;
}

/* ---------- News comment (SP-13) ---------- */
.news-item-page form .btn.btn-primary,
.news-item-page input.btn.btn-primary {
  background-color: #fe980f !important;
  border-color: #fe980f !important;
  color: #fff !important;
  border-radius: 0;
  float: none;
  margin-top: 12px;
}

.news-item-page form .row {
  align-items: flex-start;
  margin-bottom: 12px;
}

.news-item-page .gray-input,
.news-item-page .gray-textarea {
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* ---------- Advanced search (SP-14) ---------- */
.search-page .search-input .form-group.row,
.search-page .advanced-search .form-group.row,
.search-page .inputs.reversed.form-group.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.search-page .search-input label,
.search-page .advanced-search label {
  text-align: start;
  margin-bottom: 0;
  font-weight: 400;
  color: #696763;
}

.search-page .search-input input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

.search-page .search-input .reversed .col-md-6 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-page .search-input .reversed label {
  cursor: pointer;
}

@media (max-width: 991px) {
  .search-page .search-input .form-group.row > .col-md-3:empty {
    display: none;
  }

  .search-page .search-input .form-group.row > .col-md-3,
  .search-page .search-input .form-group.row > .col-md-6 {
    width: 100%;
  }

  .search-page .search-input .form-group.row > .col-md-3 label {
    margin-bottom: 6px;
  }
}

.search-page .search-input select,
.search-page .advanced-search select,
.search-page .search-text {
  width: 100%;
  max-width: 100%;
  text-align: start;
  padding: 8px 12px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.search-page .buttons.clearfix {
  margin-top: 16px;
  text-align: start;
}

/* ---------- Blog list post meta ---------- */
.custom-blog-page .blog-post-area .post-meta {
  margin: 4px 0 14px;
}

.custom-blog-page .blog-post-area .post-meta ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}

.custom-blog-page .blog-post-area .post-meta ul li {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 13px;
  line-height: 1.5;
  color: #8c8c88;
}

.custom-blog-page .blog-post-area .post-meta ul li i {
  margin: 0;
  padding: 0;
  font-size: 14px;
  background: none !important;
  color: #fe980f !important;
}

.custom-blog-page .blog-post-area .post-meta ul li i::after {
  content: none;
}

/* ---------- Wishlist validation (SP-16) ---------- */
.wishlist-content .alert.alert-danger,
.wishlist-page .message-error,
.html-wishlist-page .alert {
  display: block;
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
  text-align: start;
}

.wishlist-content .common-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Responsive: prevent header overflow ---------- */
@media (max-width: 767px) {
  .header_top .social-icons .nav > li {
    float: none;
    display: inline-block;
  }

  .category-menu .search-box {
    width: 100%;
    margin-top: 10px;
  }

  .qty-box {
    max-width: 120px;
  }

  .order-review-data > .billing-info-wrap,
  .order-review-data > .shipping-info-wrap {
    flex: 1 1 100%;
  }

  .navbar-header .navbar-toggle {
    display: block;
    float: right;
    margin: 8px 15px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 9px 10px;
  }

  .navbar-collapse.collapse:not(.in) {
    display: none !important;
  }

  .navbar-collapse.collapse.in {
    display: block !important;
  }
}

/* Zoom safety (BUG-003) */
@media (min-resolution: 1.5dppx) {
  .features_items .col-sm-4,
  .features_items .product-image-wrapper {
    max-width: 100%;
  }
}

/* ---------- OPC / checkout address form (billing + shipping) ---------- */
.opc .panel-body,
.opc .checkout-data {
  overflow: visible;
}

.opc .ship-to-same-address {
  text-align: start;
  margin: 0 0 16px;
}

.opc .ship-to-same-address .selector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  text-align: start;
}

.opc .opc-select-address-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 720px;
}

.opc .opc-select-address-container > label {
  margin: 0;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
}

.opc .opc-select-address-container .address-select,
.opc #billing-address-select,
.opc #shipping-address-select {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  background: #f0f0e9;
  border: 1px solid #e8e8e0;
  color: #696763;
  padding: 10px 12px;
  margin: 0;
}

.opc .opc-address-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.opc .opc-address-actions .button-1,
.opc .opc-address-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 38px;
  margin: 0;
  padding: 8px 18px;
  float: none;
  width: auto;
  box-sizing: border-box;
  align-self: auto;
}

.opc .enter-address,
.checkout-page .enter-address {
  max-width: 720px;
}

.opc .enter-address .form-horizontal,
.checkout-page .enter-address .form-horizontal {
  margin: 0;
}

/* Undo global .inputs flex + Bootstrap horizontal float clash */
.opc .enter-address .form-horizontal .form-group,
.opc .enter-address .form-horizontal .form-group.inputs,
.checkout-page .enter-address .form-horizontal .form-group,
.checkout-page .enter-address .form-horizontal .form-group.inputs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  float: none;
  clear: both;
  margin: 0 0 14px;
  padding: 0;
}

.opc .enter-address .form-horizontal .form-group::before,
.opc .enter-address .form-horizontal .form-group::after,
.checkout-page .enter-address .form-horizontal .form-group::before,
.checkout-page .enter-address .form-horizontal .form-group::after {
  display: none;
  content: none;
}

.opc .enter-address .form-horizontal .form-group > [class*="col-"],
.checkout-page .enter-address .form-horizontal .form-group > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  position: static;
  left: auto;
  right: auto;
}

.opc .enter-address .form-horizontal .form-group > [class*="col-"] > div,
.checkout-page .enter-address .form-horizontal .form-group > [class*="col-"] > div {
  margin: 0;
}

.opc .enter-address label,
.checkout-page .enter-address label {
  display: inline-block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #555;
  line-height: 1.3;
}

.opc .enter-address .required,
.checkout-page .enter-address .required {
  color: #c0392b;
  margin-inline-start: 2px;
}

.opc .enter-address .gray-input,
.opc .enter-address .gray-dropdown,
.opc .enter-address input[type="text"],
.opc .enter-address input[type="email"],
.opc .enter-address input[type="tel"],
.opc .enter-address select,
.checkout-page .enter-address .gray-input,
.checkout-page .enter-address .gray-dropdown,
.checkout-page .enter-address input[type="text"],
.checkout-page .enter-address select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  background: #f0f0e9;
  border: 1px solid #e8e8e0;
  color: #696763;
  border-radius: 0;
}

.opc .enter-address .text-danger,
.opc .enter-address .field-validation-error,
.checkout-page .enter-address .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.opc .enter-address #states-loading-progress,
.checkout-page .enter-address #states-loading-progress {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
}

/* OPC step buttons: see opc-address-form.css (authoritative) */

/* Desktop: first + last name side by side */
@media (min-width: 768px) {
  .opc .enter-address .form-horizontal,
  .checkout-page .enter-address .form-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 0;
  }

  .opc .enter-address .form-horizontal > .form-group:nth-child(n + 3),
  .checkout-page .enter-address .form-horizontal > .form-group:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .opc .enter-address,
  .opc .opc-select-address-container,
  .checkout-page .enter-address {
    max-width: 100%;
  }

  .opc .ship-to-same-address .selector {
    flex-wrap: wrap;
  }

  .opc .opc-address-actions {
    width: 100%;
  }

  .opc .opc-address-actions .button-1,
  .opc .opc-address-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
}

html[dir="rtl"] .opc .ship-to-same-address .selector {
  text-align: start;
}

/* Focus visibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #fe980f;
  outline-offset: 2px;
}

/* ---------- Register page (one column) ---------- */
.features_items.register-page {
  max-width: 760px;
}

.register-page .register-box {
  padding: 28px 32px;
}

.register-section {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.register-section-title {
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #f0f0e9;
  font-size: 16px;
  font-weight: 700;
  color: #363432;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.register-field {
  min-width: 0;
  margin: 0 0 16px;
}

.register-label {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0 6px;
}

.register-label label,
span.register-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

span.register-label {
  display: block;
}

.register-label .required {
  color: #c0392b;
}

.register-form .form-control,
.register-date-picker select {
  height: 44px;
  padding: 10px 12px;
  background: #f0f0e9;
  border: 1px solid #e8e8e0;
  border-radius: 0;
  box-shadow: none;
  color: #696763;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.register-form .form-control:focus,
.register-date-picker select:focus {
  background: #fff;
  border-color: #fe980f;
  box-shadow: none;
}

.register-form .input-validation-error {
  border-color: #c0392b;
}

.register-form .field-validation-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #c0392b;
}

.register-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.register-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.register-radio,
.register-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.register-radio input[type="radio"],
.register-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fe980f;
  cursor: pointer;
}

.register-radio label,
.register-checkbox label {
  margin: 0;
  font-weight: 400;
  color: #555;
  cursor: pointer;
}

.register-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.register-checkbox.accept-consent {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.register-checkbox .read {
  color: #fe980f;
  text-decoration: underline;
  cursor: pointer;
}

.register-date-picker,
.register-date-picker .date-picker-wrapper {
  display: flex;
  gap: 10px;
}

.register-date-picker select {
  flex: 1 1 0;
  min-width: 0;
}

.register-username {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.register-username .form-control {
  flex: 1 1 220px;
}

.register-username .check-username-availability-button {
  min-height: 44px;
  margin: 0;
}

.register-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #f0f0e9;
  text-align: center;
}

.register-actions .button-1 {
  min-width: 220px;
  min-height: 46px;
  margin: 0;
  font-size: 15px;
}

/* ---------- Login page ---------- */
.features_items.login-page {
  max-width: 960px;
}

.login-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.login-page .login-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px 32px;
}

.login-card-title {
  margin: 0 0 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid #f0f0e9;
  font-size: 18px;
  font-weight: 700;
  color: #363432;
}

.login-card-text {
  color: #696763;
  font-size: 14px;
  line-height: 1.6;
}

.login-form .message-error ul {
  margin: 0 0 16px;
  padding: 10px 14px;
  list-style: none;
  background: #fdf1f0;
  border-inline-start: 3px solid #c0392b;
  color: #c0392b;
  font-size: 13px;
}

.login-form .message-error ul:empty,
.login-form .validation-summary-valid ul {
  display: none;
}

.login-field {
  margin: 0 0 16px;
}

.login-field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.login-page .login-field .gray-input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #f0f0e9;
  border: 1px solid #e8e8e0;
  border-radius: 0;
  color: #696763;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.login-page .login-field .gray-input:focus {
  background: #fff;
  border-color: #fe980f;
}

.login-page .login-field .input-validation-error {
  border-color: #c0392b;
}

.login-field .field-validation-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #c0392b;
}

.login-password {
  position: relative;
}

.login-page .login-password .gray-input {
  padding-inline-end: 48px;
}

.login-page .password-eye {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #999;
  font-size: 16px;
  cursor: pointer;
}

.login-page .password-eye:hover,
.login-page .password-eye[aria-pressed="true"] {
  color: #fe980f;
}

.login-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 13px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fe980f;
  cursor: pointer;
}

.login-remember label {
  margin: 0;
  font-weight: 400;
  color: #555;
  cursor: pointer;
}

.login-page .login-options .forgot-password {
  margin: 0;
}

.login-page .login-options .forgot-password a {
  color: #fe980f;
}

.login-page .login-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.login-page .new-wrapper .login-actions {
  margin-top: auto;
  padding-top: 24px;
}

.login-page .login-actions .button-1 {
  width: 100%;
  min-height: 46px;
  margin: 0;
  font-size: 15px;
}

.login-page .login-actions input.login-button-secondary {
  background-color: #fff !important;
  border: 1px solid #fe980f !important;
  color: #fe980f !important;
}

.login-page .login-actions input.login-button-secondary:hover,
.login-page .login-actions input.login-button-secondary:focus {
  background-color: #fe980f !important;
  color: #fff !important;
}

.login-external {
  margin-top: 24px;
}

.login-external:not(:has(*)) {
  display: none;
}

.login-info {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .login-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .login-page .login-card {
    padding: 20px 16px;
  }

  .login-page .login-card-title,
  .login-page .login-card-text {
    text-align: start;
  }
}

/* ---------- Product page reviews ---------- */
.eshopper-reviews {
  margin-top: 30px;
}

.eshopper-reviews h2.title {
  margin: 0 0 20px;
  color: #fe980f;
}

.eshopper-reviews .product-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eshopper-reviews .product-review-list > h2.title {
  margin-bottom: 4px;
}

.eshopper-reviews .product-review-item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #f0f0e9;
  border-radius: 4px;
}

.eshopper-reviews .review-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 10px;
  padding: 0;
  background: none;
}

.eshopper-reviews .review-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #363432;
  overflow-wrap: anywhere;
}

.eshopper-reviews .review-stars {
  display: inline-flex;
  gap: 2px;
  color: #fe980f;
  font-size: 15px;
  line-height: 1;
}

.eshopper-reviews .review-stars-sm {
  font-size: 12px;
}

.eshopper-reviews .review-content {
  margin: 0;
  padding: 0;
}

.eshopper-reviews .review-text {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.eshopper-reviews .avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.eshopper-reviews .text-body {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.eshopper-reviews .review-type-rating-ext {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: #696763;
}

.eshopper-reviews .review-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #999;
}

.eshopper-reviews .review-info .fa {
  margin-inline-end: 4px;
  color: #c2c2c2;
}

.eshopper-reviews .review-info a {
  color: #696763;
}

.eshopper-reviews .reply {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fafaf7;
  border-inline-start: 3px solid #fe980f;
}

.eshopper-reviews .reply-header {
  margin-bottom: 4px;
  font-weight: 600;
  color: #363432;
}

.product-review-helpfulness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f0;
  font-size: 13px;
  color: #696763;
}

.product-review-helpfulness .vote-options {
  display: inline-flex;
  gap: 8px;
}

.product-review-helpfulness button.vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #e0e0da;
  border-radius: 16px;
  color: #696763;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.product-review-helpfulness button.vote:hover,
.product-review-helpfulness button.vote:focus-visible {
  border-color: #fe980f;
  color: #fe980f;
}

.product-review-helpfulness .vote-count {
  min-width: 18px;
  padding: 0 6px;
  background: #f0f0e9;
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
}

.product-review-helpfulness .result {
  flex-basis: 100%;
  font-size: 12px;
}

.product-review-helpfulness .result:empty {
  display: none;
}

.eshopper-reviews .review-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff8ee;
  border: 1px solid #fde3bf;
  border-radius: 4px;
  color: #696763;
  font-size: 14px;
}

.eshopper-reviews .review-notice .fa {
  color: #fe980f;
  font-size: 18px;
}

.eshopper-reviews .write-review {
  margin-top: 24px;
  padding: 24px;
  border-radius: 4px;
}

.eshopper-reviews .review-field {
  margin: 0 0 16px;
}

.eshopper-reviews .review-field-label {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.eshopper-reviews .review-field-label label {
  margin: 0;
  font-weight: 600;
}

.eshopper-reviews .review-field-label .required {
  color: #c0392b;
}

.eshopper-reviews .write-review input.review-title,
.eshopper-reviews .write-review textarea.review-text {
  display: block;
  width: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #f0f0e9;
  border: 1px solid #e8e8e0;
  border-radius: 0;
  color: #696763;
  font-size: 14px;
}

.eshopper-reviews .write-review input.review-title {
  height: 44px;
}

.eshopper-reviews .write-review textarea.review-text {
  min-height: 120px;
  resize: vertical;
}

.eshopper-reviews .write-review input.review-title:focus,
.eshopper-reviews .write-review textarea.review-text:focus {
  background: #fff;
  border-color: #fe980f;
}

.eshopper-reviews .write-review .input-validation-error {
  border-color: #c0392b;
}

.eshopper-reviews .write-review .field-validation-error {
  margin: 4px 0 0;
  font-size: 12px;
  color: #c0392b;
}

.eshopper-reviews .review-hint {
  display: block;
  margin: -2px 0 6px;
  font-size: 12px;
  color: #999;
}

.eshopper-reviews .star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.eshopper-reviews .star-picker .star-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eshopper-reviews .star-picker .star-label {
  margin: 0;
  padding: 2px;
  color: #ddd;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.eshopper-reviews .star-picker .star-input:checked ~ .star-label,
.eshopper-reviews .star-picker .star-label:hover,
.eshopper-reviews .star-picker .star-label:hover ~ .star-label {
  color: #fe980f;
}

.eshopper-reviews .star-picker .star-label:hover {
  transform: scale(1.1);
}

.eshopper-reviews .star-picker .star-input:focus-visible + .star-label {
  outline: 2px solid #fe980f;
  outline-offset: 2px;
}

.eshopper-reviews .review-actions {
  margin-top: 8px;
  text-align: center;
}

.eshopper-reviews .review-actions .button-1 {
  min-width: 200px;
  min-height: 46px;
  margin: 0;
}

@media (max-width: 767px) {
  .eshopper-reviews .product-review-item,
  .eshopper-reviews .write-review {
    padding: 16px;
  }

  .eshopper-reviews .review-actions .button-1 {
    width: 100%;
  }
}

/* ---------- Email a friend page ---------- */
.features_items.email-a-friend-page {
  max-width: 760px;
}

.email-a-friend-page .email-friend-box {
  padding: 28px 32px;
}

.email-friend-product {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid #f0f0e9;
  font-size: 16px;
  font-weight: 600;
}

.email-friend-product .fa {
  color: #fe980f;
}

.email-friend-product a {
  color: #363432;
}

.email-friend-product a:hover,
.email-friend-product a:focus {
  color: #fe980f;
}

.email-friend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.email-friend-field {
  min-width: 0;
  margin: 0 0 16px;
}

.email-friend-label {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0 6px;
}

.email-friend-label label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.email-friend-label .required {
  color: #c0392b;
}

.email-a-friend-page .email-friend-form .gray-input,
.email-a-friend-page .email-friend-form .gray-textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #f0f0e9;
  border: 1px solid #e8e8e0;
  border-radius: 0;
  color: #696763;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.email-a-friend-page .email-friend-form .gray-input {
  height: 44px;
}

.email-a-friend-page .email-friend-form .gray-textarea {
  min-height: 140px;
  resize: vertical;
}

.email-a-friend-page .email-friend-form .gray-input:focus,
.email-a-friend-page .email-friend-form .gray-textarea:focus {
  background: #fff;
  border-color: #fe980f;
}

.email-a-friend-page .email-friend-form .input-validation-error {
  border-color: #c0392b;
}

.email-friend-form .field-validation-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #c0392b;
}

.email-friend-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #f0f0e9;
  text-align: center;
}

.email-friend-actions .button-1 {
  min-width: 220px;
  min-height: 46px;
  margin: 0;
  font-size: 15px;
  text-align: center;
}

.email-a-friend-page .result {
  margin: 0;
}

@media (max-width: 767px) {
  .email-a-friend-page .email-friend-box {
    padding: 20px 16px;
  }

  .email-friend-grid {
    grid-template-columns: 1fr;
  }

  .email-friend-actions .button-1 {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .register-page .register-box {
    padding: 20px 16px;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .register-actions .button-1 {
    width: 100%;
    min-width: 0;
  }
}
