/* ==========================================
   MATERIAL ADVISOR
   ========================================== */

/*.wspe-advisor{background:#fafafa;}*/
.wspe-advisor {
    /*border: 3px solid #E3E8EC; */
	border: 3px solid #fff;
	background:#fff;
    border-radius: 8px;
    padding: 14px 22px;
    color: #171717;
    box-sizing: border-box;
	box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.08);
}

/*.wspe-advisor{padding:0 0 0 12px;box-sizing:border-box}*/

.wspe-advisor * {
    box-sizing: border-box;
}

.wspe-advisor-heading {
    font-size: 20px !important;
    font-weight: 750;
    margin: 0 0 15px;
}

/* Material Advisor: optional ACF thumbnail beside the material name */
.wspe-advisor-material-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
}

.wspe-advisor-material-image {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: 0 0 32px;
}

.wspe-advisor-material-header .wspe-advisor-material-name {
    margin: 0;
    min-width: 0;
}

.wspe-advisor-material-name {
    font-size: 16px;
    font-weight: 750;
    margin: 0 0 8px;
}

.wspe-advisor-overview {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 10px;
}

.wspe-advisor-section {
    border-top: 1px solid #e8e8e8;
    padding: 10px 0 6px;
}

.wspe-advisor-section-title {
    font-size: 13px;
    font-weight: 750;
    margin: 0 0 9px;
}

/* ==========================================
   ADVISOR BULLET LISTS
   ========================================== */

.wspe-advisor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wspe-advisor-list li {
    position: relative;
    font-size: 12.5px;
    line-height: 1.5;
    margin: 7px 0;
    padding-left: 23px;
}

/* Shared icon positioning */
.wspe-advisor-list li::before {
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

/* Best For: Green checkmark */
.wspe-advisor-best-for li::before {
    content: "\2713";
    color: #17a64a;
    font-size: 15px;
}

/* Key Benefits: Blue star */
.wspe-advisor-benefits li::before {
    content: "\2605";
    color: #2684d9;
    font-size: 15px;
}

/* Things to Consider: Filled orange warning circle */
.wspe-advisor-considerations li::before {
    content: "!";
    background: #d99116;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

/* ==========================================
   MATERIAL SPECIFICATION TILES
   ========================================== */
/*

.wspe-advisor-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 16px;
}

.wspe-advisor-film-type {
    grid-column: 1 / -1;
}

.wspe-advisor-tile {
    background: #fff;
    border: 1px solid #e6e8ea;
    border-radius: 7px;
    padding: 12px 9px;
    min-width: 0;
}

.wspe-advisor-tile-label {
    font-size: 11px;
    color: #656565;
    margin-bottom: 7px;
    line-height: 1.35;
}

.wspe-advisor-tile-value {
    font-size: 12px;
    font-weight: normal;
    font-family: inherit;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

*/

/* Compact material highlights */
.wspe-advisor-tiles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 16px;
}

.wspe-advisor-tile {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    min-width: 0;
}

.wspe-advisor-tile-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #333;
    line-height: 1.55;
    margin: 0;
}

.wspe-advisor-tile-label::after {
    content: ":";
}

.wspe-advisor-tile-value {
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 400;
    color: #555;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* Remove previous full-width grid behavior */
.wspe-advisor-film-type {
    grid-column: auto;
}

/* ==========================================
   TECHNICAL SPECIFICATIONS
   ========================================== */

.wspe-advisor-technical {
    border-top: 1px solid #e8e8e8;
    padding-top: 14px;
}

.wspe-advisor-technical-toggle {
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.wspe-advisor-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.55;
    margin: 14px 0 0;
}

.wspe-advisor-spec-row {
    overflow-wrap: anywhere;
}

.wspe-advisor-spec-label {
    font-weight: 700;
    color: #333;
}

.wspe-advisor-spec-value {
    color: #555;
}

.wspe-advisor-status {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.wspe-advisor h4 {
    font-size: 0.9rem !important;
}

/* ==========================================
   ITEM SUMMARY
   ========================================== */

.wspe-summary {
    background: #fff;
    border: 4px solid #4dc44d;
    border-radius: 8px;
    padding: 22px;
    color: #171717;
    box-sizing: border-box;
    box-shadow: 0px 5px 24px 0px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.wspe-summary:hover {
    box-shadow: 0px 5px 36px 0px rgba(0, 0, 0, 0.17);
}

.wspe-summary * {
    box-sizing: border-box;
}

.wspe-summary-heading {
    font-size: 20px !important;
    font-weight: 750;
    margin: 0 0 15px;
}

.wspe-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.wspe-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    line-height: 1;
}

.wspe-summary-label {
    color: #656565;
    flex: 0 0 38%;
}

.wspe-summary-value {
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
    min-width: 0;
}

.wspe-summary-pricing {
    border-top: 1px solid #e8e8e8;
    padding: 12px 0 10px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
	line-height: 1.5;
}

.wspe-summary-total-label {
    font-size: 11px;
    color: #656565;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wspe-summary-total {
    font-size: 25px;
    font-weight: 750;
    line-height: 1.3;
}

.wspe-summary-each {
    font-size: 14px;
    color: #656565;
    text-align: right;
}

.wspe-summary-add-to-cart {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 5px;
    background: #43b94e;
    color: white;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.wspe-summary-add-to-cart:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.wspe-summary-proof {
    font-size: 11.5px;
    color: #656565;
    text-align: center;
    margin: 12px 0 0;
}

/* ==========================================
   ORIGINAL ADD TO CART BUTTON
   ========================================== */

/* Visually conceal the original submit button.
   Keep it functional for WooCommerce and Gravity Forms. */

form.cart .wspe-summary-original-submit {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Your existing mobile rule sets .wspe-advisor-tiles back to a two-column grid - You can remove that entire media query because the new layout is already mobile-friendly.

@media (max-width: 440px) {
    .wspe-advisor-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
*/


/* ==========================================
   MOBILE STICKY PRICE + ADD TO CART
   ========================================== */

@media (max-width: 767px) {

    /* Hide the Material Advisor */
    .wspe-advisor {
        display: none !important;
    }

    /* Turn Item Summary into a fixed bottom bar */
    .wspe-summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;

        background: #fff;
        border: 0;
        border-top: 2px solid #E3E8EC;
        border-radius: 0;
        padding: 12px 16px 16px;
        margin: 0;

        box-shadow: 0 -3px 15px rgba(0,0,0,.08);
    }

    /* Hide summary details */
    .wspe-summary-heading,
    .wspe-summary-rows,
    .wspe-summary-proof {
        display: none !important;
    }

    /* Compact pricing area */
    .wspe-summary-pricing {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;

        border: 0;
        padding: 0;
        margin: 0;
        flex: 1;
        min-width: 0;
    }

    .wspe-summary-total-label {
        font-size: 10px;
    }

    .wspe-summary-total {
        font-size: 21px;
        line-height: 1.2;
    }

   /* Total price and per-item price side by side */
.wspe-summary-pricing {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
}

/* Keep total label above the price */
.wspe-summary-pricing > div:first-child {
    display: flex;
    flex-direction: column;
}

/* Per-item price */
.wspe-summary-each {
    display: block;
    font-size: 11px;
    color: #777;
    white-space: nowrap;
    padding-bottom: 2px;
}

    /* Compact Add to Cart button */
    .wspe-summary-add-to-cart {
        width: auto;
        flex: 0 0 auto;
        padding: 15px 20px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Reserve space so bottom content isn't covered */
    body.single-product {
        padding-bottom: 90px;
    }
}

/* Mobile purchase bar: size and quantity above the existing total. */
.wspe-summary-mobile-details { display: none; }
@media (max-width: 767px) {
    .wspe-summary-mobile-details:not([hidden]) {
        display: block;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.35;
        color: #555;
        margin-bottom: 3px;
        white-space: nowrap;
    }
}

/* Item Summary: low-quantity pricing reminder (desktop only). */
.wspe-summary-quantity-tip {
    margin: -3px 0 18px;
    color: #656565;
    font-size: 12px;
    line-height: 1.5;
}
.wspe-summary-quantity-tip[hidden] { display: none !important; }
.wspe-summary-quantity-tip strong { font-weight: 650; }
/* Keep the compact mobile purchase bar focused on price and checkout. */
@media (max-width: 767px) {
    .wspe-summary-quantity-tip { display: none !important; }
}
