/* ==========================================================================
   Elrare site CSS (child theme). Loaded by functions.php after Woostify; keep Additional CSS empty.
   Brand: text #292624 · accent hover #7C6355 · navy #14253D
          page #FAF7F2 · field #FDFCFB · field border + divider #E5E0D8
   ========================================================================== */

/* ---------- Site-wide ---------- */

/* Page background */
.site-content-boxed-container .site-content,
.site-content-boxed-container #view,
body.single-product .content-top,
body.single-product .product-page-container,
.woostify-product-recently-viewed-section .woostify-product-recently-viewed-inner {
  background-color: #FAF7F2;
}

/* Bold text colour */
b,
strong {
  color: #444;
}

/* Bold text inside WooCommerce notices takes the notice colour (the rule above made it grey on red) */
:is(.woocommerce-error, .woocommerce-message, .woocommerce-info) strong {
  color: inherit;
}

/* Section dividers */
.woostify-product-recently-viewed-section,
.site-footer {
  border-top: 1px solid #E5E0D8;
}

.related {
  border-top: none;
}

/* Woostify icon size */
.woostify-svg-icon svg {
  width: 10px;
  height: 10px;
}

/* Widget headings */
.widget-title {
  font-size: 16px;
  font-weight: 600;
}

/* Footer links, product card text, product meta */
.product .woocommerce-loop-product__title,
.product-loop-meta .price,
.site-footer a,
.product_meta {
  font-size: 14px;
}

figcaption {
  text-align: center;
}

/* ---------- Header and top bar ---------- */

/* Top bar stays visible on scroll */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logged in: keep the top bar below the WordPress admin bar */
@media (min-width: 783px) {
  .admin-bar .topbar {
    top: 32px;
  }
}

.topbar-item.topbar-center a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-arrow {
  display: inline-block;
  animation: elrare-arrow-nudge 1.6s ease-in-out infinite;
}

@keyframes elrare-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-arrow {
    animation: none;
  }
}

.site-branding img.custom-logo {
  width: 100px;
  height: auto;
  max-width: 100%;
}

/* Mobile sidebar search icon */
.sidebar-menu .site-search .search-form-icon {
  width: 50px;
  height: 50px;
}

/* ---------- Breadcrumb ---------- */

nav.elrare-breadcrumb {
  font-size: 12px;
}

@media (max-width: 600px) {
  nav.elrare-breadcrumb {
    display: none;
  }
}

/* ---------- Forms ---------- */

input,
select,
textarea,
.select2-container .select2-selection--single {
  border: 1px solid #E5E0D8;
  margin-bottom: 10px;
  background: #FDFCFB;
}

/* Text fields everywhere (checkout, cart, account, contact, reviews): one subtle 1px border
   that only changes colour on focus. !important because Woostify styles each form with its own selectors. */
input:is([type=text], [type=email], [type=tel], [type=password], [type=number], [type=url]):not(.qty),
textarea,
select,
.select2-container .select2-selection--single {
  border-color: #E5E0D8 !important;
  border-radius: 4px !important;
  background-color: #FDFCFB !important;
}

input:is([type=text], [type=email], [type=tel], [type=password], [type=number], [type=url]):not(.qty):focus,
textarea:focus,
select:focus,
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
  border-color: #292624 !important;
  outline: none !important;
  box-shadow: none !important;
}

.form-row.woocommerce-invalid :is(.input-text, .select2-selection--single) {
  border-color: #B22222 !important;
}

/* ---------- Homepage hero ---------- */

.elrare-hero {
  margin: 0 0 30px;
  padding: 0;
  line-height: 0;
}

.elrare-hero-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

.elrare-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.elrare-hero-shop-link {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.elrare-hero-shop-link:hover {
  color: #FFFFFF;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .elrare-hero-shop-link {
    right: 18px;
    bottom: 18px;
  }
}

/* ---------- Product cards (shop, categories, tags, homepage) ---------- */

.product-loop-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
}

/* ---------- Single product ---------- */

.single-product .site-content {
  padding-top: 0;
}

.single-product .content-top {
  padding: 10px 0 0;
}

.product_title {
  font-size: 20px;
}

.product-summary .price {
  color: #292624;
  font-size: 16px;
  font-weight: bold;
}

.product-summary .stock.out-of-stock {
  font-size: 12px;
}

.product-thumbnail-images .thumbnail-item.is-selected.is-nav-selected img {
  border: 1px solid #14253D;
}

.variations label {
  font-size: 14px;
  font-weight: 700;
}

.single_variation {
  margin-bottom: 0;
}

.quantity .qty {
  margin-bottom: 0;
}

/* Short description panel */
body .woocommerce-product-details__short-description {
  background: #FDFCFB;
  padding: 20px;
  margin-top: 30px;
  border: 1px solid #F3EDE2;
  border-radius: 10px;
  line-height: 30px;
}

/* Size buttons */
.elrare-size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-right: 10px;
}

.elrare-size-button {
  min-width: 44px;
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px solid #EFEFEF;
  border-radius: 4px;
  background: #FFFFFF;
  color: #292624;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.elrare-size-button:hover,
.elrare-size-button.selected {
  background: #292624;
  color: #FFFFFF;
  border-color: #292624;
}

.elrare-size-button:focus {
  outline: none;
}

.elrare-size-button:focus-visible {
  outline: 2px solid #292624;
  outline-offset: 2px;
}

/* Add to basket while adding: spinner centred, label hidden, no repeat clicks */
.updating-cart.ajax-single-add-to-cart .single_add_to_cart_button.loading {
  color: transparent;
  pointer-events: none;
  opacity: 0.8;
}

.updating-cart.ajax-single-add-to-cart .single_add_to_cart_button.loading:before {
  left: calc(50% - 10px);
}

/* ---------- Cart ---------- */

.woocommerce-cart.cart-page-layout-2 .cart-collaterals {
  background: #FDFCFB;
}

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

/* One page background: drop Woostify's two-tone split and the phone summary band */
.checkout-layout-3:not(.woobuilder-active) .form-distr-free-bg,
.checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .woostify-col .col-right-inner:before {
  display: none;
}

/* Two equal cards: form and order summary */
.checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row {
  margin: 0;
  gap: 20px;
}

.checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .col-left,
.checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .woostify-col .col-right-inner {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .woostify-col,
.checkout-layout-3:not(.woobuilder-active) #customer_details,
.checkout-layout-3:not(.woobuilder-active) #order_review {
  padding: 0;
}

@media (min-width: 992px) {
  .checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row {
    gap: 30px;
  }

  .checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .col-left {
    flex-basis: calc(60% - 30px);
    max-width: calc(60% - 30px);
  }

  .checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .col-left,
  .checkout-layout-3:not(.woobuilder-active) form.checkout > .woostify-row .woostify-col .col-right-inner {
    padding: 32px;
  }
}

/* Section headings: one size, one spacing */
.checkout-layout-3:not(.woobuilder-active) .woocommerce-billing-fields > h3,
.checkout-layout-3:not(.woobuilder-active) .woocommerce-additional-fields > h3,
.checkout-layout-3:not(.woobuilder-active) #order_review_heading {
  display: block;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.checkout-layout-3:not(.woobuilder-active) .woocommerce-additional-fields > h3 {
  margin-top: 20px;
}

/* Back to cart: centred on the heading line */
.checkout-layout-3:not(.woobuilder-active) .back-to-cart {
  top: 0;
  display: flex;
  align-items: center;
  height: 24px;
}

.checkout-layout-3:not(.woobuilder-active) .back-to-cart a span {
  font-size: 12px;
}

/* Fields: floating label inside the input, on the cream background */
.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row .input-text,
.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row .select2-selection--single {
  margin-bottom: 0;
}

.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:not(.create-account) {
  margin-bottom: 20px;
}

.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row.notes {
  margin-bottom: 0;
}

.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:not(.field-readonly) label:not(.checkbox) {
  background: #FDFCFB;
}

/* Resting label: pin it to the input centre so a field error below cannot move it */
.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:not(.field-readonly):not(.w-anim-wrap) label:not(.checkbox) {
  top: 25px;
  bottom: auto;
}

/* Placeholder shows only once the label has moved up */
.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:not(.w-anim-wrap) .input-text::placeholder {
  color: transparent;
}

/* Field error under its input */
.checkout-layout-3:not(.woobuilder-active) form.checkout .checkout-inline-error-message {
  margin: 6px 0 0;
  color: #B22222;
  font-size: 14px;
  line-height: 20px;
}

/* Keep "Additional information" below the delivery address fields */
.checkout-layout-3:not(.woobuilder-active) .woocommerce-additional-fields {
  clear: both;
}

/* Error box: icon and message on one line, readable on phones */
.checkout-layout-3:not(.woobuilder-active) .woostify-woocommerce-NoticeGroup {
  margin-right: 0;
}

.checkout-layout-3:not(.woobuilder-active) .woostify-woocommerce-NoticeGroup .woocommerce-error {
  margin: 0 0 20px;
  padding: 16px 20px;
}

.checkout-layout-3:not(.woobuilder-active) .woocommerce-error li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.checkout-layout-3:not(.woobuilder-active) .woocommerce-error li:before {
  margin-right: 0;
}

.checkout-layout-3:not(.woobuilder-active) .woocommerce-error li a {
  display: block;
  order: 0;
  flex: 1;
  margin: 0;
}

/* Coupon: Woostify unhides the label, so hide it again for screen readers only */
.checkout-layout-3:not(.woobuilder-active) form.checkout_coupon label[for="coupon_code"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Coupon: small and quiet */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form .woocommerce-form-coupon-toggle {
  text-align: left;
  font-size: 14px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form .checkout_coupon.woocommerce-form-coupon [name=coupon_code],
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form .checkout_coupon.woocommerce-form-coupon [name=apply_coupon] {
  height: 40px;
  margin-bottom: 0;
  font-size: 14px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form .checkout_coupon.woocommerce-form-coupon [name=coupon_code] {
  padding: 0 12px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form .checkout_coupon.woocommerce-form-coupon [name=apply_coupon] {
  padding: 0 16px;
  border-radius: 4px;
}

/* Order summary: one type scale (14px rows, 18px total) and even spacing */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr,
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tfoot tr:first-child {
  border-color: #E5E0D8;
}

/* Items: image, name and price in one row, 10px apart */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item {
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item .product-name .w-product-thumb {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  width: auto;
  transform: none;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item .product-name .w-product-thumb img {
  display: block;
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item .product-name strong.product-quantity {
  top: -6px;
  right: -6px;
  left: auto;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
  flex: none;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

/* Coupon: no line above it; the "Have a coupon?" link opens the form */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form {
  border-top: 0;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form td {
  padding: 4px 0 14px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tbody tr.coupon-form .showcoupon {
  margin-left: 0;
}

/* Subtotal and Shipment: one line each, no line between them */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.cart-subtotal {
  border-bottom: 0;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
  display: flex;
  flex-direction: row;
  padding-top: 0;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.cart-subtotal > *,
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > * {
  font-size: 14px;
  line-height: 20px;
}

/* Labels in normal case and a softer colour, so the values and Total stand out */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tfoot th {
  text-transform: none;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.cart-subtotal th,
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
.checkout-layout-3:not(.woobuilder-active) #payment .wc_payment_method::before {
  color: #5E5853;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.cart-subtotal > * {
  padding: 14px 0 4px;
}

/* !important only to beat Woostify's own !important on this row */
.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > * {
  padding: 4px 0 14px !important;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
  text-align: right !important;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td label {
  font-size: 14px;
}

.checkout-layout-3:not(.woobuilder-active) #order_review .woocommerce-checkout-review-order-table tr.order-total > * {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

/* Payment: one row under Total ("Payment" left, icon + method right) instead of a boxed card */
.checkout-layout-3:not(.woobuilder-active) #payment .wc_payment_methods {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.checkout-layout-3:not(.woobuilder-active) #payment .wc_payment_method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.checkout-layout-3:not(.woobuilder-active) #payment .wc_payment_method::before {
  content: "Payment";
}

.checkout-layout-3:not(.woobuilder-active) #payment .wc_payment_method label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.checkout-layout-3:not(.woobuilder-active) #payment .wc_payment_method label::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The method name already says it; hide the "Pay with cash upon delivery." line.
   !important because WooCommerce writes display:block inline on this box */
.checkout-layout-3:not(.woobuilder-active) #payment .payment_box {
  display: none !important;
}

.checkout-layout-3:not(.woobuilder-active) #payment #place_order {
  margin-top: 20px;
}

/* ---------- Order received (thank-you page) ---------- */

/* Three white cards like checkout: confirmation, order details, delivery address */
.woocommerce-order-received .woocommerce-order {
  max-width: 640px;
  margin: 0 auto;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-order > .woocommerce-order-details,
.woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {
  background: #fff;
  border-radius: 8px;
}

/* Card 1, top: check icon and the thank-you line */
.woocommerce-order-received .woocommerce-order > .woocommerce-thankyou-order-received {
  margin: 0;
  padding: 32px 32px 20px;
  border: 0;
  border-radius: 8px 8px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-thankyou-order-received::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background-color: #2F6B4F;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.75 2.75L16 10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.75 2.75L16 10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Card 1, bottom: order facts as label/value rows */
.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview {
  display: block;
  margin: 0 0 20px;
  padding: 0 32px 32px;
  border-radius: 0 0 8px 8px;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  color: #5E5853;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

/* Order number: the reference buyers need, so it gets a cream highlight and a # */
.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview .order {
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: #FAF7F2;
  border-radius: 6px;
  color: #292624;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview .order strong {
  font-size: 16px;
  font-weight: 600;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview .order strong::before {
  content: "#";
}

.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview li strong {
  display: inline;
  color: #292624;
  font-size: 14px;
  font-weight: 400;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview .total strong {
  font-weight: 600;
}

.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview .email strong {
  overflow-wrap: anywhere;
  text-align: right;
}

/* Payment method and the "Pay with cash upon delivery." line repeat the order details */
.woocommerce-order-received .woocommerce-order > .woocommerce-order-overview .method,
.woocommerce-order-received .woocommerce-order > p:not(.woocommerce-notice) {
  display: none;
}

/* Card 2: order details, same rows as the checkout summary */
.woocommerce-order-received .woocommerce-order > .woocommerce-order-details {
  margin: 0 0 20px;
  padding: 32px;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-order-details__title {
  margin: 0 0 20px;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  text-transform: none;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details {
  margin: 0;
  border: 0;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details :is(th, td) {
  padding: 4px 0;
  border: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tbody td {
  padding: 0 0 10px;
  vertical-align: middle;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tbody tr:last-child td {
  padding-bottom: 14px;
}

/* Item: thumbnail (added in functions.php), name, quantity in one row */
:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tbody td.product-name {
  display: flex;
  align-items: center;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .elrare-order-thumb {
  flex: none;
  width: 56px;
  height: 70px;
  margin-right: 12px;
  object-fit: cover;
  border-radius: 6px;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tbody .product-quantity {
  margin-left: 4px;
  white-space: nowrap;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tbody .product-name a {
  color: #292624;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tfoot th {
  color: #5E5853;
  text-transform: none;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tfoot tr:first-child > * {
  padding-top: 14px;
  border-top: 1px solid #E5E0D8;
}

/* Total: the row before Payment method, same weight as the checkout Total */
:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-table--order-details tfoot tr:nth-last-child(2) > * {
  padding: 10px 0;
  color: #292624;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

/* Card 3: delivery address only (billing is the same address for COD orders) */
.woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {
  padding: 32px;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-column--billing-address {
  display: none;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-column--shipping-address {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-column--shipping-address .woocommerce-column__title {
  margin: 0 0 12px;
  text-align: left;
  padding: 0;
  border: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-column--shipping-address address p {
  margin: 0;
}

:is(.woocommerce-order-received .woocommerce-order, .woocommerce-view-order .woocommerce-MyAccount-content) .woocommerce-column--shipping-address address {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-style: normal;
  line-height: 22px;
}

/* Phone is in the top card (template override), so the address card shows name and address only */
.woocommerce-order-received .woocommerce-order .woocommerce-column--shipping-address .woocommerce-customer-details--phone {
  display: none;
}

/* Continue shopping (added in functions.php): full-width button under the cards */
.woocommerce-order-received .woocommerce-order > .elrare-continue-shopping {
  margin: 20px 0 0;
}

.woocommerce-order-received .woocommerce-order > .elrare-continue-shopping .button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 24px;
}

@media (max-width: 991px) {
  .woocommerce-order-received .woocommerce-order > .woocommerce-thankyou-order-received {
    padding: 20px 20px 16px;
  }

  .woocommerce-order-received .woocommerce-order > .woocommerce-order-overview {
    padding: 0 20px 20px;
  }

  .woocommerce-order-received .woocommerce-order > .woocommerce-order-details,
  .woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {
    padding: 20px;
  }
}

/* ---------- Account: login, lost/reset password, and the logged-in account area ---------- */

/* Password eye: WooCommerce's icon inside the field, no grey button box (login, reset, account, checkout) */
.password-input input {
  margin: 0;
  padding-right: 44px;
}

.show-password-input {
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5E5853;
  transform: translateY(-50%);
}

/* Password strength meter (account details, set/reset password): a small coloured note under the field */
.woocommerce-password-strength {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 18px;
}

.woocommerce-password-strength:empty {
  display: none;
}

.woocommerce-password-strength:is(.short, .bad) {
  background: #FBEAEA;
  color: #B22222;
}

.woocommerce-password-strength.good {
  background: #FFF4E5;
  color: #8A5A00;
}

.woocommerce-password-strength.strong {
  background: #E6F0E9;
  color: #2F6B4F;
}

.woocommerce-password-hint {
  display: block;
  margin-top: 6px;
  color: #5E5853;
  font-size: 13px;
  line-height: 18px;
}

.woocommerce form .button.disabled {
  cursor: not-allowed;
}

/* Account forms: one field and label size everywhere */
.woocommerce-account #main .woocommerce form .form-row label {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 20px;
}

.woocommerce-account #main .woocommerce form :is(.input-text, select) {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 12px;
}

.woocommerce-account #main .woocommerce form .form-row {
  margin: 0 0 16px;
}

.woocommerce-account #main .woocommerce form .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 50px;
}

.woocommerce-account #main .woocommerce form .select2-container .select2-selection__arrow {
  height: 48px;
}

/* Logged out (login, lost password, email sent, set/reset password): one centred card */
.woocommerce-account:not(.logged-in) #main .woocommerce {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 991px) {
  .woocommerce-account:not(.logged-in) #main .woocommerce {
    padding: 20px;
  }
}

.woocommerce-account:not(.logged-in) #main .woocommerce > h2 {
  margin: 0 0 20px;
  text-align: left;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.woocommerce-account:not(.logged-in) #main .woocommerce form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce-account:not(.logged-in) #main .woocommerce form > p:first-child:not(.form-row) {
  margin: 0 0 20px;
  color: #5E5853;
}

.woocommerce-account:not(.logged-in) #main .woocommerce form .form-row {
  float: none;
  width: 100%;
}

.woocommerce-account:not(.logged-in) #main .woocommerce .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.woocommerce-account:not(.logged-in) #main .woocommerce .woocommerce-form-login__rememberme input {
  margin: 0;
}

.woocommerce-account:not(.logged-in) #main .woocommerce form .button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  margin: 0;
}

.woocommerce-account:not(.logged-in) #main .woocommerce .lost_password {
  margin: 16px 0 0;
  text-align: center;
}

/* Notes in the account area (logged in and out): success green, error soft red, info cream.
   Icons and links take the note colour; Woostify draws them white for its dark banners */
.woocommerce-account #main .woocommerce :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
}

.woocommerce-account #main .woocommerce .woocommerce-message {
  display: block;
  background: #E6F0E9;
  color: #2F6B4F;
}

.woocommerce-account #main .woocommerce .woocommerce-error {
  background: #FBEAEA;
  color: #B22222;
}

.woocommerce-account #main .woocommerce .woocommerce-info {
  background: #FAF7F2;
  color: #292624;
}

.woocommerce-account #main .woocommerce :is(.woocommerce-message, .woocommerce-error li, .woocommerce-info)::before {
  color: inherit;
}

.woocommerce-account #main .woocommerce :is(.woocommerce-error li, .woocommerce-message, .woocommerce-info) a:not(.button) {
  display: inline;
  order: 0;
  margin: 0;
  color: inherit;
  text-decoration: underline;
}

.woocommerce-account:not(.logged-in) #main .woocommerce .woocommerce-message ~ p {
  margin: 0;
  color: #5E5853;
}

/* Logged in: menu card beside a content card (stacked on phones) */
.woocommerce-account.logged-in #main .woocommerce {
  display: grid;
  gap: 20px;
  align-items: start;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  margin: 0;
  background: #fff;
  border-radius: 8px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation {
  padding: 12px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #292624;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation .is-active a {
  background: #FAF7F2;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation .is-active a {
  font-weight: 600;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content {
  min-width: 0;
  padding: 20px;
  font-size: 14px;
  line-height: 22px;
}

/* Save buttons: the same 24px under the last field on every account form (Woostify adds 40px on one) */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content form button[type=submit] {
  margin-top: 8px;
}

/* Edit-address heading (restored in functions.php), styled like the other card titles */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content form > h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content form p:has(> button[type=submit]) {
  margin-bottom: 0;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content > p:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .woocommerce-account.logged-in #main .woocommerce {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
  }

  .woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    gap: 2px;
  }

  .woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-navigation a {
    padding: 10px 12px;
  }

  .woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content {
    padding: 32px;
  }
}

/* Info notes with a button (e.g. "Confirm email address"): text and button on one row */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-info::before {
  display: none;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-info .button {
  order: 2;
  margin: 0;
}

/* Orders list */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table {
  margin: 0;
  border: 0;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table :is(th, td) {
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #E5E0D8;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table thead th {
  padding-top: 0;
  color: #5E5853;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table :is(th, td):first-child {
  padding-left: 0;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table :is(th, td):last-child {
  padding-right: 0;
  text-align: right;
}

/* Phones: Woostify hides every th in responsive tables, which hid the order number. Show it like the other cells */
@media (max-width: 767px) {
  .woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table tbody :is(th, td) {
    padding-right: 0;
    padding-left: 0;
  }

  .woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table tbody th {
    display: block;
    text-align: right;
  }

  .woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table tbody th::before {
    content: attr(data-title);
    float: left;
    font-weight: 700;
  }
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-orders-table .button {
  margin: 0;
  padding: 6px 16px;
  font-size: 13px;
  line-height: 20px;
}

/* Order view: "Order #9933 was placed on …" without the yellow highlights */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-MyAccount-content mark {
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 600;
}

.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type {
  margin: 0 0 20px;
}

.woocommerce-view-order .woocommerce-customer-details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E0D8;
}

/* Addresses overview */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-Addresses {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-Address {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 16px;
  border: 1px solid #E5E0D8;
  border-radius: 6px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-Address-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-Address-title .edit {
  font-size: 14px;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-Address address {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
}

@media (min-width: 768px) {
  .woocommerce-account.logged-in #main .woocommerce .woocommerce-Addresses {
    grid-template-columns: 1fr 1fr;
  }
}

/* Account details: password section without the fieldset box */
.woocommerce-account.logged-in #main .woocommerce .woocommerce-EditAccountForm fieldset {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-EditAccountForm legend {
  margin: 0 0 12px;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
}

.woocommerce-account.logged-in #main .woocommerce .woocommerce-EditAccountForm em {
  display: block;
  margin-top: 4px;
  color: #5E5853;
  font-size: 13px;
  font-style: normal;
}

/* ---------- Blog ---------- */

.blog-layout-grid .site-main .entry-title {
  font-size: 16px;
  padding: 10px;
  line-height: 28px;
  margin-bottom: 0;
}

.blog-layout-grid .site-main .summary-text {
  padding: 0 10px 10px;
  font-size: 14px;
}

.blog-layout-grid .site-main .post-read-more a {
  font-weight: normal;
}

.single-post.site-content-boxed-container .site-content .woostify-container {
  max-width: 760px;
  margin: auto;
}

@media (min-width: 992px) {
  .single-post.has-sidebar:not(.offcanvas-sidebar) #primary,
  .category-blogs.has-sidebar:not(.offcanvas-sidebar) #primary {
    width: 100%;
  }
}

/* ---------- Content pages ---------- */

.elrare-page-wrapper {
  max-width: 760px;
  margin: auto;
}

.elrare-page-wrapper.bg {
  background: #FAF7F2;
  padding: 20px;
  border-radius: 20px;
}

.elrare-page-wrapper a,
.single-post .post-loop .entry-content a {
  font-weight: bold;
  color: #444;
}

/* About page images */
article#post-6012 img {
  margin: 30px 0;
  border-radius: 20px;
}

/* ---------- Contact form ---------- */

.contact-form {
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
}

.contact-form input.wpcf7-form-control.wpcf7-submit.has-spinner {
  background: #292624;
  border: none;
  color: #FFFFFF;
}

.contact-form input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
  background: #7C6355;
}
