/* Wellness Mora overrides on top of the theme (styles.css). */
:root {
	--wm-teal: #27808b;
	--wm-teal-dark: #1f6f7a;
	--wm-navy: #0f2b38;
	--wm-grey: #999999;
	--wm-line: #e6e8ea;
	--wm-error: #c0392b;
}

/* Brand colour helpers kept from the source theme config */
.wm-bg1 { background-color: var(--wm-grey) !important; }
.wm-bg2 { background-color: var(--wm-teal) !important; }
.wm-color1 { color: var(--wm-grey) !important; }
.wm-color2, .text-brand { color: var(--wm-teal) !important; }
.text-black { color: #000 !important; }
.header-default .nav-icon .nav-icon-item .count-box { background-color: var(--wm-teal) !important; }
.box-navigation { position: relative; z-index: 5000; }
.slider-default .box-content { z-index: 99; }
.s-banner-countdown .banner-content { z-index: 2; left: 0; width: 100%; }

/* Logo */
.logo-header .logo { max-height: 64px; width: auto; }
.logo-header .logo-compact { display: none; }
/* Below desktop the header row is short: one-line logo that fits it */
@media (max-width: 1199px) {
	.logo-header { display: flex; justify-content: center; }
	.logo-header .logo-desktop { display: none; }
	.logo-header .logo-compact { display: block; height: 30px; max-height: none; width: auto; max-width: 100%; }
}
@media (max-width: 400px) { .logo-header .logo-compact { height: 26px; } }
.footer-logo .logo { max-height: 72px; width: auto; }
.brand-item img { max-width: 100%; }

/* Payment card icons */
.cards { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 10px; }
.cards img { max-height: 28px; width: auto; }

/* Footer: mobile link list only below 576px (source behaviour) */
#footer .footer-links-mobile { display: none; }
@media only screen and (max-width: 575px) {
	#footer .footer-links-desktop { display: none !important; }
	#footer .footer-links-mobile { display: block; }
}
.newsletter-msg { margin-top: 8px; min-height: 1em; color: var(--wm-teal); }
.newsletter-msg.is-error { color: var(--wm-error); }

/* Grid: original spacing between "All Products" title and grid */
.all-products-home .flat-spacing-24 { padding-top: 0; }
.card-product .card-product-wrapper img { object-fit: contain; }

/* Product gallery: one bottle per bottle in the bundle */
.image-repeat-box { display: table; width: 100%; position: relative; }
.image-repeat-box-item { max-width: 50%; float: left; position: relative; z-index: 3; }
.image-repeat-box-item img { max-width: 100%; }
.image-repeat-box-item:nth-child(1n + 3) { margin-top: -40%; }
.image-repeat-box-1 .image-repeat-box-item { margin: 0 auto; float: none; max-width: 100%; }
.image-repeat-box-3 .image-repeat-box-item:nth-child(3) { margin-left: 25%; }
.image-repeat-box-4 .image-repeat-box-item:nth-child(3) { margin-left: 5%; }
.image-repeat-box-4 .image-repeat-box-item:nth-child(4) { margin-left: 0; margin-right: -5%; }
.image-repeat-box-5 .image-repeat-box-item:nth-child(1) { margin-left: 10%; }
.image-repeat-box-5 .image-repeat-box-item:nth-child(2) { margin-right: -10%; margin-left: -20%; }
.product-gallery .product-main-img { display: block; }
.product-gallery .thumbnails { display: flex; justify-content: center; margin-top: 12px; }
.product-gallery .label-thumb { display: block; background: #f8f7f5; padding: 5px; border-radius: 4px; }
.product-gallery .label-thumb img { width: 100px; height: 100px; object-fit: cover; }

/* Purchase form */
.buy-table { width: 100%; margin-bottom: 24px; }
.buy-table td { padding: 6px 0; vertical-align: middle; }
.buy-label { width: 150px; padding-right: 10px !important; }
.buy-table select { padding: 10px; min-width: 180px; border: 1px solid var(--wm-line); border-radius: 4px; }
.pt-radios { display: grid; gap: 8px; margin-top: 10px; }
.pt-radios label { display: flex; gap: 8px; align-items: center; cursor: pointer; margin: 0; }
.pt-radios input[disabled] + span { opacity: .55; }
.pt-hint { color: #777; }
.pt-sub-disclosure { font-size: 14px; line-height: 1.5; border-left: 3px solid #ccc; padding-left: 10px; }
.pt-sub-disclosure p { margin: 0 0 6px; }
.pt-autorenew-label { align-items: flex-start !important; }
.dropdown-terms { line-height: 1.5; font-size: 14px; font-weight: 300; }
.buy-error { margin: 0 0 12px; font-size: 14px; }
@media (max-width: 575px) {
	.buy-label { width: 110px; }
	.buy-table select { min-width: 0; width: 100%; }
}

/* Quick view: image + details side by side; details grow with their content (Add to Cart always visible) */
.modal-quick-view .js-quick-view-body { display: flex; width: 100%; align-items: center; }
.modal-quick-view .tf-product-media-wrap .item img { width: 100%; height: auto; object-fit: contain; }
.modal-quick-view .tf-product-info-wrap .tf-product-info-inner { position: static; max-height: 85vh; overflow-y: auto; }
@media (min-width: 768px) {
	.modal-quick-view .js-quick-view-body > .tf-product-media-wrap { flex: 0 0 40%; width: 40%; padding: 24px; }
	.modal-quick-view .js-quick-view-body > .tf-product-info-wrap { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 767px) {
	.modal-quick-view .js-quick-view-body { flex-direction: column; }
	.modal-quick-view .tf-product-media-wrap { width: 60%; margin: 24px auto 0; }
	.modal-quick-view .tf-product-info-wrap .tf-product-info-inner { max-height: none; padding: 20px; }
}

/* Mini cart */
.js-mini-cart-items { padding: 0 32px; }
@media (max-width: 575px) { .js-mini-cart-items { padding: 0 16px; } }
.tf-mini-cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--wm-line); }
.tf-mini-cart-image img { width: 80px; height: 80px; object-fit: contain; background: #f8f7f5; border-radius: 4px; }
.tf-mini-cart-info { flex: 1; min-width: 0; }
.tf-mini-cart-info .variant { color: #666; margin: 2px 0 8px; }
.mini-cart-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wg-quantity.small { width: 104px; height: 36px; }
.wg-quantity.small .btn-quantity { width: 30px; }
.wg-quantity.small input { width: 40px; }
.tf-mini-cart-info .mini-cart-remove { background: none; border: 0; padding: 0; margin-top: 8px; font-size: 13px; text-decoration: underline; color: #666; }
.mini-cart-empty { text-align: center; padding: 40px 0; }
.js-checkout-link.is-disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }

/* Page titles (theme background image removed) */
.tf-page-title { background: linear-gradient(180deg, #eef6f7 0%, #f7fbfb 100%); }
.tf-page-title.page-title-sm { padding: 48px 0 40px; }

/* Policy pages */
.policy-body { max-width: 860px; margin: 0 auto; line-height: 1.7; }
.policy-body h4 { margin: 32px 0 12px; font-size: 22px; }
.policy-body h5 { margin: 24px 0 10px; font-size: 18px; }
.policy-body ul, .policy-body ol { padding-left: 20px; margin-bottom: 16px; }
.policy-body ul { list-style: disc; }
.policy-body ol { list-style: decimal; }
.policy-body li { margin-bottom: 6px; }
.policy-body a { color: var(--wm-teal); text-decoration: underline; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.price-table th { background: #1a1a1a; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 14px 20px; }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table td { padding: 13px 20px; border-bottom: 1px solid #ebebeb; color: #2c2c2c; }
.price-table small { display: block; font-size: 12px; color: #888; font-style: italic; }
.price-table .tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; margin-left: 6px; text-transform: uppercase; background: #efefef; color: #666; }
.price-table .tag-sub { background: #e8f4f0; color: #2a7a5e; }
.label-card { display: block; border: 1px solid var(--wm-line); border-radius: 8px; overflow: hidden; text-decoration: none !important; color: inherit !important; }
.label-card img { width: 100%; display: block; }
.label-card span { display: block; padding: 10px 14px; font-weight: 500; }
.wm-faq .accordion-button:not(.collapsed) { background: #eef6f7; color: var(--wm-navy); box-shadow: none; }
.wm-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(39, 128, 139, .25); }
.cancel-wrap { max-width: 480px; margin: 0 auto; }

/* Forms */
.wm-form-title { font-size: 20px; margin: 8px 0 16px; }
.wm-form .row + .wm-form-title { margin-top: 32px; }
.wm-field { margin-bottom: 4px; }
.wm-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.wm-field input[type=text], .wm-field input[type=email], .wm-field input[type=tel], .wm-field select, .wm-field textarea {
	width: 100%; padding: 11px 14px; border: 1px solid #d5d9dc; border-radius: 6px; background: #fff; font-size: 15px; line-height: 1.4;
}
.wm-field select { appearance: auto; }
.wm-field input:focus, .wm-field select:focus, .wm-field textarea:focus { outline: none; border-color: var(--wm-teal); box-shadow: 0 0 0 3px rgba(39, 128, 139, .15); }
.wm-field.has-error input, .wm-field.has-error select, .wm-field.has-error textarea { border-color: var(--wm-error); }
.wm-error { color: var(--wm-error); font-size: 13px; margin: 4px 0 0; min-height: 18px; }
.wm-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.wm-check input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--wm-teal); }
.wm-check a { color: var(--wm-teal); text-decoration: underline; }
.wm-submit-hint { font-size: 13px; color: #777; text-align: center; margin-top: 8px; }
.wm-form-msg { margin-top: 12px; padding: 12px 14px; background: #e8f4f0; color: #1f5f4a; border-radius: 6px; }
.tf-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Checkout + payment */
.checkout-steps { display: flex; justify-content: center; gap: 28px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: #888; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; }
.checkout-steps span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid #bbb; font-size: 12px; }
.checkout-steps .is-active { color: var(--wm-navy); font-weight: 500; }
.checkout-steps .is-active span { background: var(--wm-teal); border-color: var(--wm-teal); color: #fff; }
.checkout-steps .is-done span { background: var(--wm-navy); border-color: var(--wm-navy); color: #fff; }
.order-summary { background: #f7f9fa; border: 1px solid var(--wm-line); border-radius: 10px; padding: 24px; position: sticky; top: 100px; }
.summary-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--wm-line); }
.summary-img { position: relative; flex: none; }
.summary-img img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--wm-line); border-radius: 8px; }
.summary-qty { position: absolute; top: -8px; right: -8px; background: var(--wm-navy); color: #fff; border-radius: 10px; font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; display: flex; align-items: center; justify-content: center; }
.summary-name { flex: 1; min-width: 0; font-size: 14px; }
.summary-name small { display: block; color: #777; }
.summary-price { font-weight: 500; white-space: nowrap; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-total { border-top: 1px solid #d5d9dc; margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 600; }
.summary-note { font-size: 13px; color: #555; margin: 14px 0 0; }
.summary-note a { color: var(--wm-teal); text-decoration: underline; }
.ship-review { border: 1px solid var(--wm-line); border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.ship-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ship-edit { color: var(--wm-teal); text-decoration: underline; font-size: 14px; }
.ship-review p { margin-bottom: 8px; line-height: 1.6; }
.payment-box { border: 1px solid var(--wm-line); border-radius: 10px; padding: 24px; }
.payment-sub { color: #666; margin-top: -8px; }
.payment-options { margin: 16px 0; }
.payment-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--wm-line); border-radius: 8px; padding: 14px 16px; }
.payment-option .cards { margin-left: auto; padding: 0; }
.payment-option.is-disabled { opacity: .5; cursor: not-allowed; }
.payment-unavailable { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 8px; background: #fdecea; color: #a12a1e; border: 1px solid #f5c2bd; font-weight: 500; }
.btn-proceed { background: var(--wm-navy) !important; color: #fff !important; border-color: var(--wm-navy) !important; }
.btn-proceed[disabled] { opacity: .45; }
@media (max-width: 991px) { .order-summary { position: static; } }

/* Lightbox */
.wm-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 20, 25, .88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wm-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.wm-lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 28px; }

/* Card quick-view button: reveal on hover on desktop (always visible on touch screens) */
@media (hover: hover) and (min-width: 1200px) {
	.card-product .list-product-btn li { opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; }
	.card-product:hover .list-product-btn li { opacity: 1; transform: none; }
}
/* Icon box: icons at the source size */
.tf-icon-box .box-icon i { font-size: 35px; color: var(--wm-navy); }
/* Spacing between the banner and the "All Products" title (source used a <br> + 30px) */
.all-products-home { margin-top: 56px; }
/* Best Sellers: centre the 3 cards only when all fit in one row */
@media (min-width: 1200px) { .sellers-wrapper { justify-content: center; } }
/* Product grid: 2 columns on phones, 3 on tablets */
@media (max-width: 767px) { .tf-grid-layout.tf-col-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) and (max-width: 1199px) { .tf-grid-layout.tf-col-4 { grid-template-columns: repeat(3, 1fr); } }
/* Button "working" state */
.wm-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: wm-spin .7s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes wm-spin { to { transform: rotate(360deg); } }
.tf-btn.is-busy { opacity: .85 !important; }
/* 404 */
.page-404 { padding: 100px 0 120px; }
.code-404 { font-size: 96px; line-height: 1; font-weight: 600; color: var(--wm-teal); margin-bottom: 16px; }
.modal-quick-view .tf-product-heading .text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.modal-quick-view .tf-product-heading { margin-bottom: 12px !important; }
.modal-quick-view .tf-product-variant { margin-bottom: 12px !important; }
.modal-quick-view .buy-table { margin-bottom: 8px; }
.modal-quick-view .dropdown-terms, .modal-quick-view .pt-sub-disclosure { font-size: 12.5px; line-height: 1.45; color: #555; }
/* "From" price prefix on bundle products */
.price-from { font-size: .62em; font-weight: 400; color: #777; margin-right: 2px; }
/* Accordion arrow turns when open */
.accordion-title .fa-arrow-down { transition: transform .25s; }
.accordion-title:not(.collapsed) .fa-arrow-down { transform: rotate(180deg); }
/* Inline links in footer text */
.footer-newsletter p a, .dropdown-terms a { text-decoration: underline; }
/* Checkout helpers */
.wm-help { font-size: 13px; color: #777; margin: 6px 0 0; }
.secure-note { font-size: 13px; color: #555; text-align: center; margin-top: 10px; }
.secure-note i { color: var(--wm-teal); margin-right: 4px; }
/* Product names may wrap to two lines on phones instead of being cut */
@media (max-width: 767px) {
	.card-product .name-product { white-space: normal; overflow: visible; text-overflow: clip; display: block; -webkit-line-clamp: unset; }
	.display-md.title { font-size: 30px; line-height: 38px; }
}
