/**
 * Hebda Promo Engine - Frontend Styles
 *
 * @package Hebda_Promo_Engine
 */

:root {
    --hebda-promo-bg: #f9f7f2;
    --hebda-promo-bg-alt: #eaf0ed;
    --hebda-promo-heading: #1a1a1a;
    --hebda-promo-text: #4a4a4a;
    --hebda-promo-primary: #006F4F;
    --hebda-promo-primary-hover: #1e4d35;
    --hebda-promo-accent: #ed5c4a;
    --hebda-promo-accent-bg: #ffe7e4;
    --hebda-promo-border: rgba(0, 0, 0, 0.1);
    --hebda-promo-radius: 8px;
    --hebda-promo-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Promo Sections Container
   ========================================================================== */

.hebda-promo-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    order: 60;
}

/* ==========================================================================
   Buy Together Cheaper
   ========================================================================== */

.hebda-buy-together {
    order: 100;
    background: var(--hebda-promo-bg);
    border-radius: 0;
    padding: 1.5rem;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hebda-buy-together__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.hebda-buy-together__title {
    font-family: "Gambetta", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hebda-promo-heading);
    margin: 0;
}

.hebda-buy-together__label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--hebda-promo-accent-bg);
    color: var(--hebda-promo-accent);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hebda-buy-together__products {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hebda-buy-together__product {
    flex: 1;
    width: 50%;
    min-width: 100px;
}

.hebda-buy-together__checkbox-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.hebda-buy-together__checkbox {
    position: absolute;
    opacity: 0;
}

.hebda-buy-together__product-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hebda-buy-together__checkbox:checked + .hebda-buy-together__product-inner {
    border-color: var(--hebda-promo-primary);
    box-shadow: var(--hebda-promo-shadow);
}

.hebda-buy-together__checkbox:disabled + .hebda-buy-together__product-inner {
    opacity: 0.8;
}

.hebda-buy-together__product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.hebda-buy-together__product-name {
    font-size: 0.8125rem;
    color: var(--hebda-promo-heading);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.hebda-buy-together__product-name small {
    display: block;
    color: var(--hebda-promo-text);
    font-size: 0.6875rem;
}

.hebda-buy-together__product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hebda-promo-primary);
}

.hebda-buy-together__plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    color: var(--hebda-promo-text);
}

.hebda-buy-together__summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 0;
}

.hebda-buy-together__prices {
    background: var(--hebda-promo-bg-alt);
    padding: 1rem;
    border-radius: 0;
}

.hebda-buy-together__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.hebda-buy-together__price-label {
    font-size: 0.875rem;
    color: var(--hebda-promo-text);
}

.hebda-buy-together__price-regular {
    text-decoration: line-through;
    color: var(--hebda-promo-text);
}

.hebda-buy-together__price-row--discount {
    color: var(--hebda-promo-accent);
}

.hebda-buy-together__price-discount small {
    font-size: 0.75rem;
}

.hebda-buy-together__price-row--total {
    padding-top: 0.5rem;
    border-top: 0;
    margin-top: 0.25rem;
}

.hebda-buy-together__price-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hebda-promo-primary);
}

.hebda-buy-together__add-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: var(--hebda-promo-primary);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hebda-buy-together__add-btn:hover {
    background: var(--hebda-promo-primary-hover);
}

/* Multiple Packages Layout */
.hebda-buy-together--multi .hebda-buy-together__header {
    margin-bottom: 1.5rem;
}

.hebda-buy-together__packages--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.hebda-buy-together__package {
    position: relative;
    background: #fff;
    border: 0;
    border-radius: 0;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hebda-buy-together__package:hover {
    box-shadow: none;
}

.hebda-buy-together__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.875rem;
    background: var(--hebda-promo-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hebda-buy-together__package-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    padding-right: 7rem;
    border-bottom: 0;
}

.hebda-buy-together__package-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hebda-promo-heading);
    margin: 0;
}

.hebda-buy-together__package .hebda-buy-together__products {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hebda-buy-together__package .hebda-buy-together__product {
    width: 100%;
    min-width: 80px;
}

.hebda-buy-together__package .hebda-buy-together__product-inner {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--hebda-promo-border);
}

.hebda-buy-together__package .hebda-buy-together__product-image {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.hebda-buy-together__package .hebda-buy-together__product-name {
    display: block;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.hebda-buy-together__package .hebda-buy-together__product-info {
    min-width: 0;
}

.hebda-buy-together__package .hebda-buy-together__plus {
    display: none;
}

.hebda-buy-together__package .hebda-buy-together__summary {
    padding-top: 0.75rem;
    border-top: 0;
}

.hebda-buy-together__package .hebda-buy-together__prices {
    padding: 0.75rem;
    background: var(--hebda-promo-bg);
}

.hebda-buy-together__package .hebda-buy-together__price-total {
    font-size: 1.125rem;
}

/* Single package (no grid) */
.hebda-buy-together:not(.hebda-buy-together--multi) .hebda-buy-together__package {
    background: transparent;
    border: none;
    padding: 0;
}

.hebda-buy-together:not(.hebda-buy-together--multi) .hebda-buy-together__package-header {
    display: none;
}

.hebda-buy-together:not(.hebda-buy-together--multi) .hebda-buy-together__badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Complete Ritual
   ========================================================================== */

.hebda-ritual {
    background: var(--hebda-promo-bg);
    border-radius: 0;
    padding: 1.5rem;
}

.hebda-ritual--compact {
    order: 65;
    margin-top: 1.5rem;
}

.hebda-ritual--full {
    margin-top: 2rem;
    padding: 2rem;
}

.hebda-ritual__header {
    margin-bottom: 1rem;
}

.hebda-ritual__title {
    font-family: "Gambetta", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hebda-promo-heading);
    margin: 0 0 0.25rem;
}

.hebda-ritual__description {
    font-size: 0.875rem;
    color: var(--hebda-promo-text);
    margin: 0;
}

.hebda-ritual__products--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hebda-ritual__products--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.hebda-ritual__product {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.75rem;
    border-radius: 0;
    transition: box-shadow 0.2s;
}

.hebda-ritual__product:hover {
    box-shadow: var(--hebda-promo-shadow);
}

.hebda-ritual__product--card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hebda-ritual__product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--hebda-promo-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0;
    z-index: 1;
}

.hebda-ritual__product-link {
    display: block;
    flex-shrink: 0;
}

.hebda-ritual__product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.hebda-ritual__product--card .hebda-ritual__product-image {
    width: 100%;
    height: 150px;
}

.hebda-ritual__product-info {
    flex: 1;
    min-width: 0;
}

.hebda-ritual__product-content {
    padding: 1rem;
}

.hebda-ritual__product-name {
    display: block;
    font-size: 0.8125rem;
    color: var(--hebda-promo-heading);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.hebda-ritual__product-name:hover {
    color: var(--hebda-promo-primary);
}

.hebda-ritual__product-desc {
    font-size: 0.75rem;
    color: var(--hebda-promo-text);
    margin: 0.25rem 0 0.5rem;
    line-height: 1.4;
}

.hebda-ritual__product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hebda-promo-primary);
}

.hebda-ritual__product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.hebda-ritual__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--hebda-promo-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.hebda-ritual__add-btn:hover {
    background: var(--hebda-promo-primary-hover);
}

.hebda-ritual__add-btn--text {
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Ritual in Cart */
.hebda-ritual-cart {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--hebda-promo-bg);
    border-radius: 0;
}

.hebda-ritual-cart__title {
    font-family: "Gambetta", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.hebda-ritual-cart__subtitle {
    font-size: 0.875rem;
    color: var(--hebda-promo-text);
    margin: 0 0 1rem;
}

.hebda-ritual-cart__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.hebda-ritual-cart__product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.75rem;
    border-radius: var(--hebda-promo-radius);
}

.hebda-ritual-cart__product-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.hebda-ritual-cart__product-info {
    flex: 1;
    min-width: 0;
}

.hebda-ritual-cart__product-name {
    display: block;
    font-size: 0.8125rem;
    color: var(--hebda-promo-heading);
    text-decoration: none;
    line-height: 1.3;
}

.hebda-ritual-cart__product-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hebda-promo-primary);
}

.hebda-ritual-cart__add-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   Free Gift
   ========================================================================== */

.hebda-gift-progress {
    background: linear-gradient(135deg, var(--hebda-promo-bg-alt) 0%, var(--hebda-promo-bg) 100%);
    border-radius: 0;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.hebda-gift-progress--unlocked {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--hebda-promo-primary);
}

.hebda-gift-progress__header {
    margin-bottom: 0.75rem;
}

.hebda-gift-progress__label {
    font-size: 0.9375rem;
    color: var(--hebda-promo-heading);
}

.hebda-gift-progress__bar-wrapper {
    margin-bottom: 0.75rem;
}

.hebda-gift-progress__bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
}

.hebda-gift-progress__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hebda-promo-primary), #3a8a5f);
    border-radius: 0;
    transition: width 0.3s ease;
}

.hebda-gift-progress__values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--hebda-promo-text);
}

.hebda-gift-progress__reward {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--hebda-promo-border);
}

.hebda-gift-progress__product-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
}

.hebda-gift-progress__product-name {
    font-size: 0.875rem;
    color: var(--hebda-promo-text);
}

.hebda-gift-progress__success {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hebda-gift-progress__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--hebda-promo-primary);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.hebda-gift-progress__content {
    flex: 1;
}

.hebda-gift-progress__content strong {
    display: block;
    color: var(--hebda-promo-primary);
    margin-bottom: 0.25rem;
}

/* Mini Gift Progress */
.hebda-gift-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--hebda-promo-accent-bg);
    border-radius: 0;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.hebda-gift-mini__icon {
    color: var(--hebda-promo-accent);
}

.hebda-gift-mini__text strong {
    color: var(--hebda-promo-heading);
}

/* Gift Quantity in Cart */
.hebda-gift-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--hebda-promo-bg-alt);
    border-radius: 0;
    font-weight: 600;
}

/* ==========================================================================
   Urgency Messages
   ========================================================================== */

.hebda-urgency {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.hebda-urgency__message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--hebda-promo-radius);
    font-size: 0.8125rem;
}

.hebda-urgency__message--low-stock {
    background: #fff3cd;
    color: #856404;
}

.hebda-urgency__message--sale-ending,
.hebda-urgency__message--sale-active {
    background: var(--hebda-promo-accent-bg);
    color: var(--hebda-promo-accent);
}

.hebda-urgency__message--high-demand {
    background: #d4edda;
    color: var(--hebda-promo-primary);
}

.hebda-urgency__message--custom {
    background: var(--hebda-promo-bg-alt);
    color: var(--hebda-promo-primary);
}

.hebda-urgency__icon {
    flex-shrink: 0;
}

.hebda-urgency__text {
    flex: 1;
}

/* Urgency in Cart */
.hebda-urgency-cart {
    display: block;
    font-size: 0.75rem;
    color: #856404;
    background: #fff3cd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}


.cart-holder .related {
    margin: 0;
    margin-top: 50px;
}

.cart-holder .related > h2 {
    font-size: 2rem !important;
}

.woocommerce-cart .cart-holder .related.products ul {
    align-items: initial !important;
}
.cart-holder .related ul {
    padding: 0 !important;
    gap: 0 !important;
}


.cart-holder .related ul li {
    width: 50% !important;
    margin: 0 !important;
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */

.hebda-countdown {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 0;
    text-align: center;
}

.hebda-countdown--default {
    background: var(--hebda-promo-bg);
}

.hebda-countdown--minimal {
    background: transparent;
    padding: 0.5rem;
}

.hebda-countdown--bold {
    background: var(--hebda-promo-accent-bg);
}

.hebda-countdown--black-friday {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

.hebda-countdown__label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.hebda-countdown--black-friday .hebda-countdown__label {
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hebda-countdown__timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hebda-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.hebda-countdown--minimal .hebda-countdown__unit {
    min-width: 32px;
}

.hebda-countdown__value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.hebda-countdown--black-friday .hebda-countdown__value {
    font-size: 2rem;
    color: #ffd700;
}

.hebda-countdown--minimal .hebda-countdown__value {
    font-size: 1.125rem;
}

.hebda-countdown__unit-label {
    font-size: 0.6875rem;
    color: var(--hebda-promo-text);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.hebda-countdown--black-friday .hebda-countdown__unit-label {
    color: rgba(255, 255, 255, 0.7);
}

.hebda-countdown__separator {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hebda-promo-text);
    margin: 0 0.125rem;
}

.hebda-countdown--black-friday .hebda-countdown__separator {
    color: #ffd700;
}

/* Sticky Countdown */
.hebda-countdown-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.hebda-countdown-sticky--black-friday {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
}

.hebda-countdown-sticky__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hebda-countdown-sticky__label {
    font-size: 0.875rem;
    color: #ffd700;
    font-weight: 600;
}

.hebda-countdown-sticky__timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.hebda-countdown-sticky__value {
    font-size: 1.125rem;
    font-weight: 700;
}

.hebda-countdown-sticky__unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hebda-countdown-sticky__close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
}

.hebda-countdown-sticky__close:hover {
    color: #fff;
}

/* ==========================================================================
   PayPo Highlight
   ========================================================================== */

/* Image-only PayPo button (product & cart) */
.hebda-paypo--image-only {
    background: transparent;
    padding: 0;
    margin: 0.75rem 0;
}

.hebda-paypo__image-btn {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.hebda-paypo__image-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.hebda-paypo__image-btn:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.hebda-paypo__image-btn .hebda-paypo-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.hebda-paypo--product .hebda-paypo-logo {
    max-width: 100%;
}

.hebda-paypo--cart .hebda-paypo-logo {
    max-width: 100%;
}

/* PayPo Popup Dialog */
.hebda-paypo-popup,
.hebda-paypo-popup :not(svg, svg *) {
    all: initial;
    display: block;
}

.hebda-paypo-popup dialog {
    position: static;
    display: none;
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    margin: 0;
    background: transparent;
    color: inherit;
}

.hebda-paypo-popup dialog[open] {
    display: block;
}

.hebda-paypo-popup iframe {
    display: block;
    border: none;
}

.hebda-paypo-popup .hebda-paypo-popup__dialog {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hebda-paypo-popup .hebda-paypo-popup__close {
    position: absolute;
    top: 18px;
    right: 20px;
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
}

@media (min-width: 600px) {
    .hebda-paypo-popup .hebda-paypo-popup__close {
        right: calc(50% - 288px);
    }
}

.hebda-paypo-popup .hebda-paypo-popup__iframe {
    width: 616px;
    max-width: 100%;
    height: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* Original PayPo styles */
.hebda-paypo {

    order: 40;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--hebda-promo-radius);
    width: 100%;
    margin: 0.75rem 0;
}

.hebda-paypo--unavailable {
    background: var(--hebda-promo-bg);
    border-color: var(--hebda-promo-border);
}

.hebda-paypo__badge {
    flex-shrink: 0;
}

.hebda-paypo__content {
    flex: 1;
}

.hebda-paypo__headline {
    display: block;
    font-weight: 600;
    color: var(--hebda-promo-heading);
    font-size: 0.875rem;
}

.hebda-paypo__subline {
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
}

.hebda-paypo__unavailable-text {
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
}

.hebda-paypo__info-btn {
    background: transparent;
    border: none;
    color: var(--hebda-promo-text);
    cursor: pointer;
    padding: 0.25rem;
}

.hebda-paypo__info-btn:hover {
    color: var(--hebda-promo-heading);
}

/* PayPo Modal */
.hebda-paypo-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hebda-paypo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hebda-paypo-modal__content {
    position: relative;
    background: #fff;
    border-radius: var(--hebda-promo-radius);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hebda-paypo-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--hebda-promo-text);
}

.hebda-paypo-modal__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--hebda-promo-border);
}

.hebda-paypo-modal__header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.hebda-paypo-modal__body {
    padding: 1.5rem;
}

.hebda-paypo-modal__option {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--hebda-promo-border);
}

.hebda-paypo-modal__option:last-of-type {
    border-bottom: none;
}

.hebda-paypo-modal__option-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8fff0;
    border-radius: 50%;
    color: #00d066;
}

.hebda-paypo-modal__option-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.hebda-paypo-modal__option-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--hebda-promo-text);
}

.hebda-paypo-modal__summary {
    background: var(--hebda-promo-bg);
    padding: 1rem;
    border-radius: var(--hebda-promo-radius);
    margin-top: 1rem;
}

.hebda-paypo-modal__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.hebda-paypo-modal__summary-row--total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--hebda-promo-border);
}

.hebda-paypo-modal__note {
    font-size: 0.75rem;
    color: var(--hebda-promo-text);
    margin-top: 1rem;
}

/* PayPo in Cart */
.hebda-paypo-cart-row th {
    padding: 1rem 0;
}

.hebda-paypo-cart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hebda-paypo-cart__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.hebda-paypo-cart__progress {
    height: 4px;
    background: var(--hebda-promo-border);
    border-radius: 2px;
    overflow: hidden;
}

.hebda-paypo-cart__progress-bar {
    height: 100%;
    background: #00d066;
}

.hebda-paypo-cart--eligible {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem;
    background: #e8fff0;
    border-radius: var(--hebda-promo-radius);
}

.hebda-paypo-cart__info {
    flex: 1;
}

.hebda-paypo-cart__info strong {
    display: block;
    font-size: 0.875rem;
}

.hebda-paypo-cart__info span {
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
}

/* PayPo Badge */
.hebda-paypo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #e8fff0;
    border-radius: 4px;
    font-size: 0.6875rem;
    color: #00a854;
    margin-top: 0.25rem;
}

/* PayPo Recommended Badge */
.hebda-paypo-recommended {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: #00d066;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* PayPo Gateway Info */
.hebda-paypo-gateway-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #e8fff0;
    border-radius: 4px;
}

.hebda-paypo-gateway-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: #00a854;
    font-weight: 600;
}

/* ==========================================================================
   Guide Teaser
   ========================================================================== */

.hebda-guide-teaser {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--hebda-promo-bg-alt);
    border-radius: var(--hebda-promo-radius);
    margin: 0.75rem 0;
    order: 60;
}

.hebda-guide-teaser__icon {
    flex-shrink: 0;
    color: var(--hebda-promo-primary);
}

.hebda-guide-teaser__content {
    flex: 1;
}

.hebda-guide-teaser__title {
    display: block;
    font-size: 0.875rem;
    color: var(--hebda-promo-heading);
}

.hebda-guide-teaser__description {
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
}

/* Guide Cart Notice */
.hebda-guide-cart {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #d4edda;
    border-radius: var(--hebda-promo-radius);
    margin-top: 1rem;
}

.hebda-guide-cart__icon {
    color: var(--hebda-promo-primary);
    flex-shrink: 0;
}

.hebda-guide-cart__content strong {
    display: block;
    color: var(--hebda-promo-primary);
}

.hebda-guide-cart__content span {
    font-size: 0.875rem;
    color: var(--hebda-promo-text);
}

/* Guide Checkout Badge */
.hebda-guide-checkout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hebda-guide-checkout__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--hebda-promo-bg-alt);
    border-radius: var(--hebda-promo-radius);
    font-size: 0.8125rem;
    color: var(--hebda-promo-primary);
    font-weight: 600;
}

/* Guide Download Section */
.hebda-guide-download {
    padding: 2rem;
    background: var(--hebda-promo-bg-alt);
    border-radius: var(--hebda-promo-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.hebda-guide-download__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hebda-guide-download__icon {
    color: var(--hebda-promo-primary);
}

.hebda-guide-download__info {
    text-align: left;
}

.hebda-guide-download__title {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    color: var(--hebda-promo-primary);
}

.hebda-guide-download__description {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--hebda-promo-text);
}

.hebda-guide-download__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--hebda-promo-primary);
    color: #fff;
    border: none;
    border-radius: var(--hebda-promo-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.hebda-guide-download__button:hover {
    background: var(--hebda-promo-primary-hover);
    color: #fff;
}

.hebda-guide-download__note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
}

/* ==========================================================================
   Recommendations
   ========================================================================== */

.hebda-recommendations {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--hebda-promo-bg);
    border-radius: var(--hebda-promo-radius);
}
.hebda-recommendations--cart {
    width: 57.5%;
}
@media(max-width: 901px) {
.hebda-recommendations--cart {
    width: 100%;
}
}
.hebda-recommendations--cart,
.hebda-recommendations--checkout {
    margin-top: 1.5rem;
    padding: 1.25rem;
}

.hebda-recommendations__title {
    font-family: "Gambetta", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--hebda-promo-heading);
    margin: 0 0 1.5rem;
}

.hebda-recommendations--checkout .hebda-recommendations__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.hebda-recommendations__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.hebda-recommendations--checkout .hebda-recommendations__products {
    grid-template-columns: repeat(2, 1fr);
}

.hebda-recommendations__product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--hebda-promo-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
    position: relative;
}

.hebda-recommendations__product:hover {
    box-shadow: var(--hebda-promo-shadow);
}

.hebda-recommendations__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--hebda-promo-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.hebda-recommendations__product-link {
    display: block;
}

.hebda-recommendations__product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.hebda-recommendations__product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hebda-recommendations__product-name {
    display: block;
    font-size: 0.875rem;
    color: var(--hebda-promo-heading);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.hebda-recommendations__product-name:hover {
    color: var(--hebda-promo-primary);
}

.hebda-recommendations__product-rating {
    margin-bottom: 0.5rem;
}

.hebda-recommendations__product-price {
    font-weight: 600;
    color: var(--hebda-promo-primary);
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.hebda-recommendations__add-btn {
    width: 100%;
    padding: 0.625rem;
    background: var(--hebda-promo-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hebda-recommendations__add-btn:hover {
    background: var(--hebda-promo-primary-hover);
}

/* ==========================================================================
   Promo Tabs
   ========================================================================== */

.hebda-promo-tabs {
    margin-bottom: 1rem;
}

.hebda-promo-tabs__nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--hebda-promo-border);
    padding-bottom: 0.5rem;
}

.hebda-promo-tabs__btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hebda-promo-text);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.hebda-promo-tabs__btn:hover {
    color: var(--hebda-promo-heading);
}

.hebda-promo-tabs__btn--active {
    color: var(--hebda-promo-primary);
    border-bottom-color: var(--hebda-promo-primary);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.hebda-loading {
    position: relative;
    opacity: 0.75;
    pointer-events: none;
}

.hebda-loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.65em;
    border: 0.14em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: hebda-spin 0.75s linear infinite;
    vertical-align: -0.12em;
}

.hebda-loading.mobile-add-to-cart::after,
.hebda-loading.product-card__cart::after,
.hebda-loading[class*="icon"]::after {
    position: absolute;
    inset: 50% auto auto 50%;
    margin: -0.5em 0 0 -0.5em;
}

.hebda-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: hebda-spin 0.75s linear infinite;
}

@keyframes hebda-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .hebda-buy-together__title,
    .hebda-ritual__title {
        font-size: 1.0625rem;
        line-height: 1.625rem;
    }

    .hebda-buy-together__products {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .hebda-buy-together__product {
        min-width: 120px;
        flex: 0 0 auto;
    }

    .hebda-buy-together__package .hebda-buy-together__product {
        min-width: 0;
    }

    .hebda-buy-together__package {
        padding: 1rem;
    }

    .hebda-buy-together__package-header {
        padding-right: 0;
    }

    .hebda-buy-together__badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.75rem;
    }

    .hebda-buy-together__package .hebda-buy-together__product-inner {
        padding: 0.75rem;
    }

    .hebda-buy-together__package .hebda-buy-together__product-image {
        width: 56px;
        height: 56px;
    }

    .hebda-countdown-sticky__content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hebda-paypo-modal__content {
        width: 95%;
        max-height: 85vh;
    }

    .hebda-recommendations__products {
        grid-template-columns: repeat(2, 1fr);
    }

    .hebda-guide-download__header {
        flex-direction: column;
        text-align: center;
    }

    .hebda-guide-download__info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hebda-buy-together__product-image {
        width: 60px;
        height: 60px;
    }

    .hebda-countdown__value {
        font-size: 1.25rem;
    }

    .hebda-countdown--black-friday .hebda-countdown__value {
        font-size: 1.5rem;
    }

    .hebda-recommendations__products {
        grid-template-columns: 1fr;
    }

    .hebda-ritual__products--grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Bundle Display in Cart
   ========================================================================== */

.hebda-bundle-row {
    background: var(--hebda-promo-bg) !important;
    padding: 20px !important;
}

.hebda-bundle-row td {
    vertical-align: middle;
}

.hebda-bundle-thumbnails {
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: column;
}

.hebda-bundle-row .product-thumbnail {
    min-height: 9rem;
    height: auto !important;
}

.hebda-bundle-thumbnails img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
    background: #fff;
}

.hebda-bundle-thumbnails .hebda-bundle-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hebda-promo-text);
}

.hebda-bundle-title {
    display: block;
    font-size: 1rem;
    color: var(--hebda-promo-primary);
    margin-bottom: 0.5rem;
}

.hebda-bundle-products {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

.hebda-bundle-products li {
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
    padding: 0.125rem 0;
}

.hebda-bundle-products li::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--hebda-promo-primary);
}

.hebda-bundle-products li a {
    color: var(--hebda-promo-heading);
    text-decoration: none;
}

.hebda-bundle-products li a:hover {
    color: var(--hebda-promo-primary);
}

.hebda-bundle-discount {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--hebda-promo-accent-bg);
    color: var(--hebda-promo-accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0;
}

.hebda-bundle-row .product-price del {
    display: block;
    font-size: 0.8125rem;
    color: var(--hebda-promo-text);
}

.hebda-bundle-row .product-price ins {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hebda-promo-primary);
    text-decoration: none;
}

.hebda-bundle-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: #e6eae6;
    border-radius: 0;
    font-weight: 600;
    padding: 0 0.625rem;
}

.hebda-remove-bundle {
    cursor: pointer;
}

.woocommerce-cart .hebda-bundle-row .product-quantity {
    display: flex;
    justify-content: flex-end;
}

/* Mini Cart Bundle Item */
.hebda-bundle-mini-item {
    background: var(--hebda-promo-bg) !important;
    border-radius: 0;
    padding: 1rem !important;
    margin-bottom: 0.75rem;
}

.hebda-bundle-mini-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mini-cart .hebda-bundle-mini-item.mini_cart_item {
    grid-template-rows: 1fr 2.625rem !important;
}
.mini-cart .hebda-bundle-mini-item.mini_cart_item .mini-cart-image {
    height: auto !important;
}
.hebda-bundle-mini-thumbnails .hebda-bundle-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--hebda-promo-text);
}

.hebda-bundle-mini-name {
    flex: 1;
    min-width: 0;
}

.hebda-bundle-mini-item .hebda-bundle-title {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.hebda-bundle-mini-item .hebda-bundle-products {
    margin-bottom: 0.375rem;
}

.hebda-bundle-mini-item .hebda-bundle-products li {
    font-size: 0.75rem;
    padding: 0.0625rem 0;
}

.hebda-bundle-mini-item .hebda-bundle-products li a {
    font-size: 0.75rem;
}

.hebda-bundle-mini-item .hebda-bundle-discount {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.375rem;
}

.hebda-bundle-mini-price {
    text-align: right;
}

.hebda-bundle-mini-price del {
    display: block;
    font-size: 0.75rem;
    color: var(--hebda-promo-text);
}

.hebda-bundle-mini-price ins {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hebda-promo-primary);
    text-decoration: none;
}

/* Responsive Bundle Cart */
@media (max-width: 768px) {
    .hebda-bundle-thumbnails {
        flex-wrap: wrap;
    }

    .hebda-bundle-thumbnails img {
        width: 40px;
        height: 40px;
    }

    .hebda-bundle-thumbnails .hebda-bundle-more {
        width: 40px;
        height: 40px;
    }
}
