.tppo-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.10);
    padding: max(4px, calc((var(--tppo-sticky-height, 56px) - 42px) / 2)) max(8px, env(safe-area-inset-right)) calc(max(4px, calc((var(--tppo-sticky-height, 56px) - 42px) / 2)) + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
}

.tppo-sticky-cart.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.tppo-sticky-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.tppo-sticky-price {
    flex: 0 0 auto;
    min-width: 72px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
}

.tppo-sticky-price del {
    display: none;
}

.tppo-sticky-price ins {
    text-decoration: none;
}

.tppo-sticky-ppom {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
}

.tppo-sticky-ppom[hidden] {
    display: none !important;
}

.tppo-ppom-field {
    min-width: 0;
    flex: 0 1 112px;
}

.tppo-ppom-control {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 28px 0 9px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 40px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tppo-sticky-quantity {
    display: grid;
    grid-template-columns: 32px 38px 32px;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}

.tppo-sticky-quantity button,
.tppo-sticky-quantity input {
    min-width: 0 !important;
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #222 !important;
    box-shadow: none !important;
    text-align: center;
    font-size: 16px;
    line-height: 40px;
}

.tppo-sticky-quantity button {
    cursor: pointer;
}

.tppo-sticky-quantity input {
    border-left: 1px solid #e5e5e5 !important;
    border-right: 1px solid #e5e5e5 !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.tppo-sticky-quantity input::-webkit-inner-spin-button,
.tppo-sticky-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#tppo-sticky-cart .tppo-sticky-submit {
    flex: 1 1 auto;
    min-width: 130px;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 4px;
    font-weight: 700;
    line-height: 42px;
    white-space: nowrap;
}

.tppo-sticky-message {
    display: none;
    width: min(100%, 1180px);
    margin: 5px auto 0;
    color: #b42318;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}

.tppo-sticky-cart.has-message .tppo-sticky-message {
    display: block;
}

html.tppo-sticky-active body {
    padding-bottom: 62px;
}

.tppo-invalid-highlight {
    animation: tppo-highlight 1s ease-in-out 0s 2;
    outline: 2px solid #d63638 !important;
    outline-offset: 3px;
}

@keyframes tppo-highlight {
    0%, 100% { outline-color: rgba(214, 54, 56, 0.25); }
    50% { outline-color: rgba(214, 54, 56, 1); }
}

.tppo-recently-viewed {
    clear: both;
    margin: 32px auto;
}

.tppo-recently-viewed[hidden] {
    display: none !important;
}

.tppo-section-title {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.tppo-recently-viewed ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--tppo-desktop-columns, 4), minmax(0, 1fr));
    gap: 28px 22px;
    margin: 0 !important;
}

.tppo-recently-viewed ul.products::before,
.tppo-recently-viewed ul.products::after {
    display: none !important;
}

.tppo-recently-viewed ul.products > li.product {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 767px) {
    .tppo-sticky-inner {
        gap: 6px;
    }

    .tppo-sticky-price {
        min-width: 66px;
        max-width: 92px;
        overflow: hidden;
        font-size: 15px;
    }

    .tppo-sticky-ppom {
        gap: 4px;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .tppo-ppom-field {
        flex: 1 1 78px;
        max-width: 112px;
    }

    .tppo-ppom-control {
        height: 40px !important;
        min-height: 40px !important;
        padding-left: 7px !important;
        padding-right: 22px !important;
        font-size: 12px !important;
        line-height: 38px !important;
    }

    .tppo-sticky-quantity {
        grid-template-columns: 28px 34px 28px;
        height: 40px;
    }

    .tppo-sticky-quantity button,
    .tppo-sticky-quantity input {
        height: 38px !important;
        line-height: 38px;
        font-size: 15px;
    }

    #tppo-sticky-cart .tppo-sticky-submit {
        min-width: 112px;
        height: 40px;
        min-height: 40px;
        padding: 0 10px !important;
        font-size: 14px;
        line-height: 40px;
    }

    .tppo-recently-viewed ul.products {
        grid-template-columns: repeat(var(--tppo-mobile-columns, 2), minmax(0, 1fr));
        gap: 24px 12px;
    }
}

@media (max-width: 420px) {
    .tppo-sticky-inner {
        gap: 4px;
    }

    .tppo-sticky-ppom {
        gap: 3px;
    }

    .tppo-ppom-field {
        max-width: 88px;
    }

    .tppo-ppom-control {
        font-size: 11px !important;
        padding-left: 5px !important;
        padding-right: 18px !important;
    }

    .tppo-sticky-price {
        min-width: 58px;
        max-width: 78px;
        font-size: 14px;
    }

    .tppo-sticky-quantity {
        grid-template-columns: 26px 31px 26px;
    }

    #tppo-sticky-cart .tppo-sticky-submit {
        min-width: 104px;
        font-size: 13px;
    }
}

/* v1.2.0 rebuilt: multi-row sticky layouts and optional text-field mirrors. */
.tppo-ppom-mini-label {
    display: block;
    margin: 0 0 3px;
    overflow: hidden;
    color: #555;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tppo-ppom-text-control {
    padding-right: 9px !important;
}

.tppo-ppom-text-field.tppo-text-empty {
    display: block;
}

#tppo-sticky-cart.tppo-layout-rows-2,
#tppo-sticky-cart.tppo-layout-rows-3 {
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-inner,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-inner {
    display: grid;
    grid-template-columns: auto auto minmax(130px, 1fr);
    gap: 6px 8px;
    min-height: var(--tppo-sticky-height, 104px);
}

#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-ppom,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-ppom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 5px 7px;
    width: 100%;
    overflow: visible;
}

#tppo-sticky-cart.tppo-layout-rows-2 .tppo-ppom-field,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-ppom-field {
    width: 100%;
    max-width: none;
    min-width: 0;
}

#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-price,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-price {
    align-self: center;
}

#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-quantity,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-quantity,
#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-submit,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-submit {
    align-self: end;
}

#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-ppom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tppo-sticky-cart.tppo-layout-rows-3 .tppo-ppom-text-field {
    grid-column: span 1;
}

html.tppo-sticky-active body {
    padding-bottom: calc(var(--tppo-sticky-height, 56px) + 12px);
}

@media (max-width: 767px) {
    #tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-inner,
    #tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-inner {
        grid-template-columns: minmax(58px, auto) auto minmax(112px, 1fr);
        gap: 5px 6px;
    }

    #tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-ppom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-ppom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tppo-sticky-cart.tppo-layout-rows-2 .tppo-ppom-control,
    #tppo-sticky-cart.tppo-layout-rows-3 .tppo-ppom-control {
        height: 36px !important;
        min-height: 36px !important;
        line-height: 34px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 420px) {
    #tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-inner,
    #tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-inner {
        grid-template-columns: minmax(54px, auto) auto minmax(100px, 1fr);
    }

    #tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-ppom,
    #tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-ppom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* Compact cart reminder: JS moves this to the end of the product information cell. */
.tppo-cart-reminder{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;margin:6px 0 0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;font-size:12px!important;line-height:1.35!important;color:#777!important;font-weight:400!important;max-width:100%!important}
.tppo-cart-reminder-text{display:inline!important;margin:0!important;padding:0!important}
.tppo-cart-edit-link{display:inline-flex!important;align-items:center;min-height:24px!important;margin:0!important;padding:2px 8px!important;border:1px solid currentColor!important;border-radius:3px!important;background:transparent!important;box-shadow:none!important;font-size:11px!important;line-height:1.2!important;font-weight:600!important;text-decoration:none!important;text-transform:none!important}
.tppo-cart-edit-link:hover{background:rgba(0,0,0,.04)!important}
@media(max-width:549px){.tppo-cart-reminder{font-size:11px!important}.tppo-cart-edit-link{min-height:22px!important;padding:2px 7px!important;font-size:10px!important}}


/* Compact WooCommerce cart on mobile: preserve theme structure while reducing empty vertical space. */
@media(max-width:849px){
 body.woocommerce-cart .page-title-inner{padding-top:12px!important;padding-bottom:12px!important;min-height:0!important}
 body.woocommerce-cart .page-title-inner .page-title{margin:0!important;line-height:1.2!important}
 body.woocommerce-cart .woocommerce-cart-form{margin-bottom:10px!important}
 body.woocommerce-cart table.shop_table{margin-bottom:10px!important}
 body.woocommerce-cart table.shop_table td,body.woocommerce-cart table.shop_table th{padding-top:8px!important;padding-bottom:8px!important}
 body.woocommerce-cart td.product-name{padding-top:8px!important;padding-bottom:8px!important;line-height:1.35!important}
 body.woocommerce-cart td.product-name dl.variation{margin:3px 0!important}
 body.woocommerce-cart td.product-name dl.variation dt,body.woocommerce-cart td.product-name dl.variation dd{margin-bottom:1px!important;line-height:1.25!important}
 body.woocommerce-cart .cart_item{margin-bottom:0!important}
 body.woocommerce-cart .cart_totals{padding-top:4px!important;margin-top:4px!important}
 body.woocommerce-cart .cart_totals table{margin-bottom:8px!important}
 body.woocommerce-cart .wc-proceed-to-checkout{padding:6px 0 0!important;margin:0!important}
 body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{margin-bottom:8px!important}
 body.woocommerce-cart .woocommerce-cart-form .actions{padding-top:8px!important;padding-bottom:8px!important}
 .tppo-cart-reminder{margin-top:4px!important;gap:4px 7px!important}
}


/* v1.3.3 — tighter Flatsome cart heading and conversion-focused mini-cart actions. */
@media(max-width:849px){
 body.woocommerce-cart .shop-page-title,
 body.woocommerce-cart .page-title-wrapper,
 body.woocommerce-cart .page-title-inner,
 body.woocommerce-cart .page-title-inner.flex-row{
   min-height:0!important;
   height:auto!important;
   margin-top:0!important;
   margin-bottom:8px!important;
   padding-top:8px!important;
   padding-bottom:8px!important;
 }
 body.woocommerce-cart .shop-page-title .page-title-inner,
 body.woocommerce-cart .page-title-inner .flex-col{
   min-height:0!important;
   padding-top:0!important;
   padding-bottom:0!important;
 }
 body.woocommerce-cart h1.page-title,
 body.woocommerce-cart .page-title-inner h1,
 body.woocommerce-cart .shop-page-title h1{
   margin:0!important;
   padding:0!important;
   font-size:30px!important;
   line-height:1.15!important;
 }
 body.woocommerce-cart .woocommerce,
 body.woocommerce-cart .cart-container,
 body.woocommerce-cart .woocommerce-cart-form{
   padding-top:0!important;
   margin-top:0!important;
 }
 body.woocommerce-cart .woocommerce-notices-wrapper:empty{display:none!important}
}

/* Mini-cart: secondary View Cart, highly visible primary Checkout. */
.widget_shopping_cart .woocommerce-mini-cart__buttons,
.woocommerce-mini-cart .woocommerce-mini-cart__buttons{
 display:grid!important;
 grid-template-columns:1fr!important;
 gap:9px!important;
}
.widget_shopping_cart .woocommerce-mini-cart__buttons .button,
.woocommerce-mini-cart .woocommerce-mini-cart__buttons .button{
 width:100%!important;
 margin:0!important;
 border-radius:4px!important;
 font-weight:700!important;
 letter-spacing:.2px!important;
 box-shadow:none!important;
}
.widget_shopping_cart .woocommerce-mini-cart__buttons .button:not(.checkout),
.woocommerce-mini-cart .woocommerce-mini-cart__buttons .button:not(.checkout){
 background:#eef6fd!important;
 border:2px solid #2f9ee5!important;
 color:#1674b8!important;
}
.widget_shopping_cart .woocommerce-mini-cart__buttons .checkout,
.woocommerce-mini-cart .woocommerce-mini-cart__buttons .checkout{
 background:#159447!important;
 border-color:#159447!important;
 color:#fff!important;
 box-shadow:0 3px 8px rgba(21,148,71,.24)!important;
}
.widget_shopping_cart .woocommerce-mini-cart__buttons .checkout:hover,
.woocommerce-mini-cart .woocommerce-mini-cart__buttons .checkout:hover{
 background:#117a3b!important;
 border-color:#117a3b!important;
}

/* v1.3.4 — keep PPOM titles visible and show empty personalisation fields. */
#tppo-sticky-cart .tppo-ppom-text-field{display:block!important}
#tppo-sticky-cart .tppo-ppom-text-field .tppo-ppom-mini-label{display:block!important}
#tppo-sticky-cart .tppo-ppom-text-control::placeholder{opacity:.78!important}

/* Make the Flatsome cart heading area genuinely compact on phones. */
@media(max-width:849px){
 body.woocommerce-cart #main .shop-page-title,
 body.woocommerce-cart #main .page-title.shop-page-title,
 body.woocommerce-cart #main .page-title-wrapper{
   min-height:0!important;
   height:auto!important;
   margin:0!important;
   padding:6px 0!important;
 }
 body.woocommerce-cart #main .shop-page-title .page-title-inner,
 body.woocommerce-cart #main .page-title-inner.container,
 body.woocommerce-cart #main .page-title-inner.flex-row{
   min-height:0!important;
   height:auto!important;
   margin:0 auto!important;
   padding:0 15px!important;
 }
 body.woocommerce-cart #main .shop-page-title h1,
 body.woocommerce-cart #main h1.page-title{
   margin:0!important;
   padding:0!important;
   line-height:1.1!important;
 }
 body.woocommerce-cart #main .cart-container,
 body.woocommerce-cart #main .woocommerce-cart-form{
   margin-top:0!important;
   padding-top:0!important;
 }
}


/* v1.3.5 — correct PPOM titles, explicit sticky currency, balanced action row. */
#tppo-sticky-cart .tppo-sticky-currency{
    font-size:.72em;
    font-weight:700;
    margin-right:3px;
    letter-spacing:.01em;
    vertical-align:baseline;
}
#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-price,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-price,
#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-quantity,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-quantity,
#tppo-sticky-cart.tppo-layout-rows-2 .tppo-sticky-submit,
#tppo-sticky-cart.tppo-layout-rows-3 .tppo-sticky-submit{
    grid-row:2;
    margin-top:0!important;
}
#tppo-sticky-cart .tppo-ppom-mini-label{
    text-transform:none!important;
}

/* Flatsome mobile cart: remove the oversized title whitespace without touching product rows. */
@media(max-width:849px){
 body.woocommerce-cart .shop-page-title,
 body.woocommerce-cart .page-title-wrapper,
 body.woocommerce-cart .page-title-inner,
 body.woocommerce-cart header.entry-header{
   min-height:0!important;
   height:auto!important;
   margin-top:0!important;
   margin-bottom:0!important;
   padding-top:8px!important;
   padding-bottom:8px!important;
 }
 body.woocommerce-cart .shop-page-title .page-title-inner,
 body.woocommerce-cart .page-title-inner.container,
 body.woocommerce-cart .page-title-inner.flex-row{
   min-height:0!important;
   padding-top:0!important;
   padding-bottom:0!important;
 }
 body.woocommerce-cart h1.page-title,
 body.woocommerce-cart h1.entry-title,
 body.woocommerce-cart .shop-page-title h1{
   margin:0!important;
   padding:0!important;
   line-height:1.12!important;
 }
 body.woocommerce-cart .cart-container,
 body.woocommerce-cart .woocommerce,
 body.woocommerce-cart .woocommerce-cart-form{
   margin-top:0!important;
   padding-top:0!important;
 }
 body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper + *,
 body.woocommerce-cart .cart-container > .row{
   margin-top:0!important;
   padding-top:0!important;
 }
}


/* v1.3.6 — concise sticky placeholders, conversion actions, red cart count. */
#tppo-sticky-cart .tppo-ppom-text-control::placeholder{
    font-size:.9em!important;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.single-product .woocommerce-message .tppo-added-cart-actions,
.single-product .woocommerce-notice--success .tppo-added-cart-actions{
    display:flex!important;
    gap:10px!important;
    margin-top:12px!important;
    align-items:stretch!important;
    flex-wrap:wrap!important;
}
.single-product .woocommerce-message .tppo-added-cart-actions .button,
.single-product .woocommerce-notice--success .tppo-added-cart-actions .button{
    flex:0 1 160px!important;
    min-width:140px!important;
    margin:0!important;
    min-height:42px!important;
    line-height:40px!important;
    padding:0 20px!important;
    border-radius:4px!important;
    font-weight:700!important;
    font-size:13px!important;
    text-align:center!important;
}
.single-product .tppo-notice-view-cart{
    background:#eef6fd!important;
    border:2px solid #2f9ee5!important;
    color:#1674b8!important;
}
.single-product .tppo-notice-checkout{
    background:#159447!important;
    border:2px solid #159447!important;
    color:#fff!important;
    box-shadow:0 3px 8px rgba(21,148,71,.24)!important;
}
.single-product .tppo-notice-checkout:hover{
    background:#117a3b!important;
    border-color:#117a3b!important;
}

/* Flatsome header cart counter. */
.header-cart-icon .cart-icon strong,
.header-cart-link .cart-icon strong,
.cart-item .cart-icon strong,
.cart-icon strong,
.header-cart-icon .cart-count,
.header-cart-link .cart-count,
.cart-item .cart-count,
.header-cart-icon .badge,
.header-cart-link .badge{
    background:#e32222!important;
    border-color:#e32222!important;
    color:#fff!important;
    box-shadow:0 1px 4px rgba(227,34,34,.35)!important;
}

@media(max-width:420px){
    .single-product .woocommerce-message .tppo-added-cart-actions,
    .single-product .woocommerce-notice--success .tppo-added-cart-actions{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        margin-left:0!important;
    }
    .single-product .woocommerce-message .tppo-added-cart-actions .button,
    .single-product .woocommerce-notice--success .tppo-added-cart-actions .button{
        width:100%!important;
        padding:0 10px!important;
        text-align:center!important;
    }
}


/* v1.3.9 — Flatsome's actual cart badge class is .badge-inner, which the
   earlier .badge selector didn't match. Scoped to cart-icon context so
   on-sale product badges elsewhere (same class, different meaning) are untouched. */
.cart-icon .badge-inner,
.header-cart-icon .badge-inner,
.header-cart-link .badge-inner,
.cart-item .badge-inner,
a[href*="cart"] .badge-inner {
    background-color:#e60012!important;
    border-color:#e60012!important;
    color:#ffffff!important;
    opacity:1!important;
}
body .header-cart-icon .cart-icon strong,
body .header-cart-link .cart-icon strong,
body .cart-item .cart-icon strong,
body .cart-icon strong,
body .header-cart-icon .cart-count,
body .header-cart-link .cart-count,
body .cart-item .cart-count,
body .header-cart-icon .badge,
body .header-cart-link .badge,
body .header-cart-link .badge-circle,
body .cart-item .badge,
body .cart-item .badge-circle,
body .header-cart-icon .badge-circle,
body .header-cart-link .cart-icon strong::before,
body .header-cart-link .cart-icon strong::after,
body .cart-item .cart-icon strong::before,
body .cart-item .cart-icon strong::after,
body .cart-icon strong::before,
body .cart-icon strong::after {
    background-color:#e60012!important;
    border-color:#e60012!important;
    color:#fff!important;
    opacity:1!important;
}
