.wws-sample-wrap,
.wws-sample-wrap * {
    box-sizing: border-box;
}

.wws-sample-wrap {
    --wws-blue: #155778;
    --wws-text: #252521;
    --wws-border: rgba(21, 87, 120, 0.72);
    --wws-paper: #ffffff;
    width: 100%;
    clear: both;
}

/* Product page: a confident secondary CTA below Add to basket. */
.wws-sample-wrap--pdp {
    margin: 14px 0 0;
}

.wws-add-sample {
    appearance: none;
    cursor: pointer;
    font: inherit;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.wws-add-sample--pdp {
    display: flex !important;
    width: 100% !important;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 !important;
    padding: 13px 18px !important;
    border: 1px solid var(--wws-border) !important;
    border-radius: 0 !important;
    background: var(--wws-paper) !important;
    color: var(--wws-blue) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.13em !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.wws-button-price {
    padding-left: 10px;
    border-left: 1px solid rgba(21, 87, 120, 0.28);
    letter-spacing: 0.04em;
}

.wws-add-sample--pdp:hover,
.wws-add-sample--pdp:focus-visible {
    border-color: var(--wws-blue) !important;
    background: rgba(21, 87, 120, 0.06) !important;
    color: var(--wws-blue) !important;
}

.wws-add-sample:focus-visible {
    outline: 2px solid var(--wws-blue) !important;
    outline-offset: 3px !important;
}

.wws-add-sample:disabled {
    cursor: default;
    opacity: 0.58;
}

.wws-add-sample.is-adding {
    cursor: wait;
    opacity: 0.72;
}

.wws-add-sample.is-added {
    border-color: var(--wws-blue) !important;
    background: rgba(21, 87, 120, 0.08) !important;
    color: var(--wws-blue) !important;
}

.wws-status {
    display: block;
    min-height: 0;
    margin-top: 7px;
    color: #7b2f2f;
    font-size: 12px;
    line-height: 1.4;
}

.wws-status:empty {
    display: none;
}

/* Product listing pages: compact secondary sample action. */
.wws-sample-wrap--loop {
    display: flex;
    justify-content: center;
    margin: 12px 0 0;
    text-align: center;
}

.wws-add-sample--loop {
    display: inline-flex !important;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 9px 17px !important;
    border: 1px solid rgba(21, 87, 120, 0.58) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--wws-blue) !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.10em !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.wws-add-sample--loop:hover,
.wws-add-sample--loop:focus-visible {
    border-color: var(--wws-blue) !important;
    background: rgba(21, 87, 120, 0.06) !important;
    color: var(--wws-blue) !important;
}

.wws-sample-wrap--loop .wws-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Bridge header mini basket: keep the theme dropdown visible after AJAX add. */
.shopping_cart_outer.wws-mini-cart-open .shopping_cart_dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.shopping_cart_outer.wws-mini-cart-open .shopping_cart_dropdown > .wws-mini-cart-footer {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    clear: both !important;
    box-sizing: border-box !important;
    margin-top: 18px !important;
}

.shopping_cart_outer.wws-mini-cart-open .shopping_cart_dropdown > .wws-mini-cart-footer > .view-cart,
.shopping_cart_outer.wws-mini-cart-open .shopping_cart_dropdown > .wws-mini-cart-footer > .qbutton {
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.shopping_cart_outer.wws-mini-cart-open .shopping_cart_dropdown > .wws-mini-cart-footer > .total {
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 0 0 auto !important;
    flex: 0 1 auto !important;
    text-align: right !important;
}

@media (max-width: 767px) {
    .wws-add-sample--pdp {
        min-height: 50px;
    }
}

/* Bridge/Qode Product List Elementor widgets used on the homepage and editorial pages. */
.qode-pl-holder .qode-pli .wws-sample-wrap--qode,
.qodef-woo-product-list .qodef-e .wws-sample-wrap--qode,
.qodef-woo-product-list .product .wws-sample-wrap--qode {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 12px 0 0;
    text-align: left;
}

.qode-pl-holder .qode-pli .wws-add-sample--qode,
.qodef-woo-product-list .qodef-e .wws-add-sample--qode,
.qodef-woo-product-list .product .wws-add-sample--qode {
    min-width: 132px;
}

.qode-pl-holder .qode-pli .wws-sample-wrap--qode .wws-status,
.qodef-woo-product-list .qodef-e .wws-sample-wrap--qode .wws-status,
.qodef-woo-product-list .product .wws-sample-wrap--qode .wws-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* v1.0.4: DOM-injected Qi/Qode Product List buttons. These rules deliberately
   do not depend on Qode's private tile class names. */
.wws-sample-wrap--qode {
    display: flex !important;
    width: 100% !important;
    clear: both !important;
    justify-content: flex-start !important;
    margin: 12px 0 0 !important;
    text-align: left !important;
}

.wws-add-sample--qode {
    min-width: 132px !important;
}

.wws-sample-wrap--qode .wws-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
