/* =========================================================================
   CART DRAWER & HEADER CART ICON STYLES
   ========================================================================= */

/* --- HEADER CART PILL RECONSTRUCTION --- */
.pp-cart-pill {
    display: inline-flex;
    align-items: center;
    background: #1e293b;
    /* Dark slate */
    border-radius: 99px;
    padding: 8px 16px 8px 8px;
    gap: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pp-cart-pill:hover,
.cart-item.has-dropdown:hover .pp-cart-pill {
    background: #0f172a;
    color: white;
}

.pp-cart-bag-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-cart-bag-wrapper svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pp-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #10b981;
    /* Emerald 500 */
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e293b;
    padding: 0 4px;
    line-height: 1;
}

.pp-cart-text-area {
    display: flex;
    flex-direction: column;
}

.pp-cart-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.pp-cart-amount.cart-price {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: white;
    font-family: var(--font-heading, 'Poppins', sans-serif);
}

.pp-cart-amount.cart-price .woocommerce-Price-currencySymbol {
    font-size: 11px;
    font-weight: 600;
}


/* --- FLATSOME NATIVE MINI-CART OVERRIDES --- */

/* 1. Hide default Flatsome titles to use our clean header */
.cart-popup-title {
    display: none !important;
}

/* 2. Container Overrides */
.cart-popup-inner {
    padding: 0 !important;
    /* Remove default inner padding */
    background: #fff !important;
}

/* The desktop dropdown container */
.nav-dropdown-default.nav-dropdown {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 360px !important;
    max-width: 100vw !important;
    margin-top: 15px !important;
}

.widget_shopping_cart_content {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

/* Custom CSS Header Title */
.widget_shopping_cart_content::before {
    content: "Twój koszyk";
    display: block;
    padding: 20px 24px 16px 24px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    /* Prevent squishing */
}

/* Product List Container */
ul.woocommerce-mini-cart {
    padding: 16px 24px !important;
    margin: 0 !important;
    list-style: none !important;
    max-height: calc(80vh - 250px);
    /* Safe max height for desktop, avoiding footer cutoffs */
    overflow-y: auto !important;
    flex: 1 1 auto;
    background: #fff;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item:last-child {
    margin-bottom: 0 !important;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
    box-sizing: border-box !important;
    position: relative !important;
    padding: 0 40px 0 80px !important;
    /* Space for image on left, X button on right */
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 64px !important;
    border-bottom: none !important;
}

/* Image */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Product Title */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item>a:not(.remove) {
    font-family: var(--font-sans, 'Inter', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    padding-right: 32px !important;
    /* Increase space to avoid overlapping the X button */
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    /* Truncate title to 2 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    /* Allow wrapping */
}

/* Remove button */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    border-radius: 50%;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* Variations */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item dl.variation {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item dl.variation dt,
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item dl.variation dd,
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item dl.variation p {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    white-space: normal !important;
    /* Keep description legible */
}

/* Quantity and Price */
.ux-mini-cart-qty {
    margin: 0 !important;
}

.ux-mini-cart-qty span.quantity {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.ux-mini-cart-qty span.quantity .woocommerce-Price-amount {
    font-weight: 800 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
}

.ux-mini-cart-qty small {
    display: none !important;
}

/* --- FREE SHIPPING PROGRESS BAR --- */
.pp-mini-cart-shipping {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    min-height: 84px;
    /* Layout stability (CLS) */
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Contextual margin for the Mini-Cart drawer */
.widget_shopping_cart_content .pp-mini-cart-shipping {
    margin: 16px 24px;
}

/* Success State Override for Container */
.pp-mini-cart-shipping.is-free {
    background: #ecfdf5;
    border-color: #a7f3d0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.pp-shipping-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-shipping-header.is-success-shipping {
    justify-content: center;
}

.pp-shipping-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.pp-shipping-header.is-success-shipping .pp-shipping-icon {
    background: #10b981;
    color: #ffffff;
    animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pp-shipping-icon svg {
    width: 20px;
    height: 20px;
}

.pp-shipping-text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    line-height: 1.3;
}

.pp-shipping-header.is-success-shipping .pp-shipping-text {
    align-items: center;
    justify-content: center;
}

.pp-ship-prefix {
    font-size: 13px;
    color: #64748b;
}

.pp-shipping-header.is-success-shipping .pp-ship-prefix {
    color: #047857;
    font-weight: 600;
    font-size: 14px;
}

.pp-ship-amount {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.pp-shipping-header.is-success-shipping .pp-ship-amount {
    color: #059669;
    font-size: 14px;
}

.pp-ship-suffix {
    font-size: 13px;
    color: #64748b;
    display: inline;
}

/* Hide the <br> from older template usages if any remain */
.pp-ship-suffix br {
    display: none;
}

/* Progress Pill */
.pp-shipping-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}

.pp-shipping-bar {
    height: 100%;
    background: linear-gradient(90deg, #34d399 0%, #059669 100%);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
    position: relative;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Animated gentle highlight sweeping across the progress bar */
.pp-shipping-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* --- FOOTER (Subtotal and Buttons) --- */
.widget_shopping_cart_content .ux-mini-cart-footer {
    background: #f8fafc !important;
    padding: 24px 24px 24px 24px !important;
    border-top: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    border: none !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: none !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total .woocommerce-Price-amount {
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Checkout Button (Primary) */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.checkout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: #059669 !important;
    color: white !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 1 !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.checkout:hover {
    background: #047857 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2) !important;
}

/* View Cart Button (Secondary) */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: white !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 2 !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout):hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Safe Shopping Badge attached to widget body */
.widget_shopping_cart_content::after {
    content: "Bezpieczne zakupy i płatności";
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    background: #f8fafc;
    padding-bottom: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center left calc(50% - 92px);
}

/* Flatsome Payment Icons outside widget content */
.payment-icons {
    background: #f8fafc;
    text-align: center !important;
    padding: 8px 0 24px 0;
    width: 100%;
}

.payment-icons .payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px;
    margin: 0 2px;
    width: 44px;
    height: 28px;
}

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 849px) {

    /* Drawer structure overrides */
    html.has-off-canvas-opened,
    body.has-off-canvas-opened {
        overflow: hidden !important;
    }

    body.has-off-canvas-opened {
        position: fixed !important;
        width: 100% !important;
    }

    .mfp-content.off-canvas-cart,
    .off-canvas-right .cart-popup-inner {
        height: 100vh !important;
        height: -webkit-fill-available !important;
        /* Fix for Safari/Chrome URL bars */
        max-height: 100vh !important;
        max-height: -webkit-fill-available !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    /* Wrap the entire widget to flex */
    .cart-popup-inner .widget_shopping_cart {
        flex: 1 1 0% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        /* Hide outer scroll */
    }

    .widget_shopping_cart_content {
        height: 100% !important;
        flex: 1 1 0% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    /* Make the list scrollable */
    ul.woocommerce-mini-cart {
        flex: 1 1 auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* Smooth scroll on iOS */
        padding-bottom: 32px !important;
        /* Breathe at bottom */
    }

    /* Sticky Footer */
    .widget_shopping_cart_content .ux-mini-cart-footer {
        flex: 0 0 auto !important;
        margin-top: 0 !important;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid #f1f5f9 !important;
        background: #f8fafc !important;
        z-index: 10;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    /* Close Button Polish */
    .cart-popup-title {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        padding: 10px !important;
        background: #fff;
        z-index: 10;
    }

    .cart-popup-title span,
    .cart-popup-title .is-divider {
        display: none !important;
    }
}

/* =========================================================================
   GLOBAL STICKY SHIPPING BAR (NON-INTRUSIVE)
   ========================================================================= */
.pp-global-shipping-bar {
    position: fixed;
    min-height: 6px;
    /* Layout stability (CLS) */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: var(--font-sans, 'Inter', sans-serif);
    pointer-events: none;
    /* Let clicks pass through container */
}

.pp-global-shipping-bar.pp-hidden {
    display: none !important;
}

/* Enable pointer events only on interactive parts */
.pp-gsb-panel,
.pp-gsb-slim-track {
    pointer-events: auto;
}

/* --- THE PANEL (Mała Belka) --- */
.pp-gsb-panel {
    position: absolute;
    bottom: 24px;
    /* Space above track */
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    background: #1e293b;
    border-radius: 16px;
    padding: 16px 24px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: max-content;
    max-width: 90vw;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #334155;
    z-index: 20;
}

/* Tooltip triangle pointing down */
.pp-gsb-panel::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1e293b;
}

/* Visibility logic */
.pp-global-shipping-bar:hover .pp-gsb-panel,
.pp-global-shipping-bar.is-expanded .pp-gsb-panel,
.pp-global-shipping-bar.is-expanded-manual .pp-gsb-panel {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Revert trigger chevron direction when expanded */
.pp-global-shipping-bar:hover .pp-gsb-trigger svg,
.pp-global-shipping-bar.is-expanded .pp-gsb-trigger svg,
.pp-global-shipping-bar.is-expanded-manual .pp-gsb-trigger svg {
    transform: rotate(180deg);
}

.pp-gsb-panel-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pp-gsb-icon {
    display: flex;
    flex-shrink: 0;
}

.pp-gsb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pp-gsb-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pp-gsb-desc {
    font-size: 14px;
    color: #cbd5e1;
}

.pp-gsb-neon,
.pp-gsb-neon .amount,
.pp-gsb-neon bdi,
.pp-gsb-neon span {
    color: #22c55e !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* Add custom animation to the panel when it is expanded via AJAX */
.pp-global-shipping-bar.is-expanded .pp-gsb-panel {
    animation: pp-gsb-bounce-entry 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pp-gsb-bounce-entry {
    0% {
        transform: translateX(-50%) translateY(20px) scale(0.95);
    }

    50% {
        transform: translateX(-50%) translateY(-8px) scale(1.02);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.pp-global-shipping-bar.is-expanded .pp-gsb-icon svg {
    animation: pp-gsb-truck-bounce 0.8s ease-out 0.2s;
}

@keyframes pp-gsb-truck-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px) rotate(-8deg);
    }

    50% {
        transform: translateY(0);
    }

    70% {
        transform: translateY(-2px) rotate(4deg);
    }
}

.pp-gsb-panel-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #334155;
    padding-top: 12px;
}

.pp-gsb-min,
.pp-gsb-max,
.pp-gsb-min .amount,
.pp-gsb-max .amount,
.pp-gsb-min bdi,
.pp-gsb-max bdi {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8 !important;
    white-space: nowrap;
}

.pp-gsb-panel-bar-bg {
    flex-grow: 1;
    height: 8px;
    background: #334155;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pp-gsb-panel-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
    border-radius: 99px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    min-width: 4px;
}

/* Success special styling */
.pp-gsb-panel-top.is-success .pp-gsb-title {
    color: #22c55e;
    font-size: 17px;
}

/* --- THE SLIM TRACK (bottom 6px) --- */
.pp-gsb-slim-track {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.pp-gsb-slim-bg {
    width: 100%;
    height: 6px;
    background: #cbd5e1;
    /* Base gray track */
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.pp-global-shipping-bar.is-free .pp-gsb-slim-bg {
    background: #10b981;
    /* Fully green when free */
}

/* No glowing shadow on the slim bar to keep it non-intrusive */
.pp-gsb-slim-fill {
    height: 100%;
    background: #10b981;
    transition: width 1s ease-out;
}

/* Added to prevent the free state from having two greens stacking confusingly */
.pp-global-shipping-bar.is-free .pp-gsb-slim-fill {
    display: none;
}

/* --- THE TRIGGER HANDLE --- */
.pp-gsb-trigger {
    position: absolute;
    bottom: 6px;
    /* Exactly on top of track */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    width: 44px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}

.pp-gsb-trigger svg {
    width: 14px;
    height: 14px;
    stroke: #64748b;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s;
}

.pp-gsb-trigger:hover {
    background: #f8fafc;
}

/* Invisible Hover Zone (so moving mouse up to panel doesn't lose hover) */
.pp-gsb-hover-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    /* Taller area to catch mouse */
    z-index: 5;
    cursor: pointer;
    /* Signal interaction */
}

@media (max-width: 768px) {
    .pp-gsb-panel {
        bottom: calc(24px + env(safe-area-inset-bottom));
        padding: 12px 16px;
    }

    .pp-gsb-slim-track {
        bottom: env(safe-area-inset-bottom);
    }

    .pp-gsb-title {
        font-size: 14px;
    }

    .pp-gsb-desc {
        font-size: 13px;
    }
}