.webshop-tier-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}

.webshop-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}

.webshop-pricing-table thead tr {
    background: #1a1a2e;
    color: #fff;
}

.webshop-pricing-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.webshop-pricing-table thead tr:last-child th {
    border-bottom: 4px solid #fff;
    padding-bottom: 14px;
}

.webshop-pricing-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.webshop-pricing-table tbody tr:last-child {
    border-bottom: none;
}

.webshop-pricing-table tbody tr:hover {
    background: #f7f9fc;
}

.webshop-pricing-table tbody td {
    padding: 10px 16px;
    color: #333;
    white-space: nowrap;
}

.webshop-pricing-table tbody td:first-child {
    font-weight: 600;
    color: #1a1a2e;
}

.webshop-pricing-table tbody td:nth-child(3) {
    color: #000;
    font-weight: 500;
}

.webshop-pricing-table tbody tr.webshop-tier-active {
    background: #ececec;
    outline: 2px solid #ececec;
    outline-offset: -2px;
}

.webshop-pricing-table tbody tr.webshop-tier-active td {
    color: #333;
    font-weight: 600;
}

.webshop-price-preview {
    margin: 8px 0 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.webshop-qty-total {
    display: none;
    margin: 0 0 12px;
    padding: 10px 16px;
    background: #ececec;
    border-radius: 4px;
    font-size: 20px;
    color: #333;
}
#reviews .comment-text .description {
    position: relative;
}
#reviews .comment-text .description.collapsed {
    max-height: 120px;
    overflow: hidden;
}
#reviews .comment-text .description.collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}
.review-toggle {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Best-price row + callout on the single-product tiered pricing table */
.webshop-pricing-table tbody tr.webshop-tier-best {
    background: #ececec;
}

.webshop-pricing-table tbody tr.webshop-tier-best td {
    color: #1a1a2e;
    font-weight: 600;
}

.webshop-best-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #ff007f;
    color: #000;
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    font-family: poppins, sans-serif;
    word-break: normal;
    letter-spacing:0.3px;
}

.webshop-tier-callout {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: #fff9e6;
    border: 1px solid #f5e6a8;
    border-radius: 4px;
    font-size: 0.9em;
    color: #333;
}

/* Shop/archive loop — lowest tier unit price */
.webshop-from-price {
    display: block !important;
    font-weight: 600;
    color: #1a1a2e;
}

.webshop-from-price-note {
    display: block !important;
    font-size: 0.75em;
    font-weight: 400;
    color: #777;
}

/* Mobile: fit the volume pricing table on screen; callout never scrolls sideways */
.webshop-tier-table-wrap {
    overflow: visible;
}
.webshop-tier-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
@media (max-width: 767px) {
    .webshop-pricing-table {
        font-size: 12px;
        table-layout: auto;
    }
    .webshop-pricing-table thead th,
    .webshop-pricing-table tbody td {
        padding: 8px 6px;
        white-space: normal;
        word-break: normal;
    }
    .webshop-pricing-table {
        min-width: 440px;
    }
    .webshop-best-badge {
        display: inline-block;
        margin: 4px 0 0;
        white-space: nowrap;
    }
    .webshop-tier-callout {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Product card image overlay button (shop, homepage, related products) */
.wc-block-components-product-image {
    position: relative;
}
.webshop-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.wc-block-product:hover .webshop-image-overlay,
.wc-block-product:focus-within .webshop-image-overlay,
.wc-block-components-product-image:hover .webshop-image-overlay,
.wc-block-components-product-image:focus-within .webshop-image-overlay {
    opacity: 1;
}
.webshop-image-overlay .webshop-overlay-btn {
    pointer-events: auto;
    display: inline-block;
    padding: 10px 22px;
    background: #ff007f;
    color: #000 !important;
    border: 0;
    border-radius: 4px;
    font-family: "Poppins", var(--wp--preset--font-family--poppins), sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.webshop-image-overlay .webshop-overlay-btn:hover,
.webshop-image-overlay .webshop-overlay-btn:focus,
.webshop-image-overlay .webshop-overlay-btn:active {
    background: #ff007f;
    color: #000 !important;
    box-shadow: none;
    transform: none;
    opacity: 1;
}
/* Touch devices have no hover: keep the button visible, no dark tint */
@media (hover: none) {
    .webshop-image-overlay {
        opacity: 1;
        background: transparent;
        align-items: flex-end;
        padding-bottom: 12px;
    }
}

/* Touch devices: smaller overlay button */
@media (hover: none) {
    .webshop-image-overlay {
        padding-bottom: 8px;
    }
    .webshop-image-overlay .webshop-overlay-btn {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 4px;
    }
}
@media (max-width: 767px) {
    .webshop-image-overlay .webshop-overlay-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Hide WooCommerce's injected "View cart" link inside the overlay (button itself becomes View cart) */
.webshop-image-overlay a.added_to_cart {
    display: none !important;
}
