/* ==========================================================
   Identifix  Product Page Styles
   Template : stores/identifix/product-pages/
   Prefix   : .idp-
   Sections : hero | details | testimonials | notice
   ========================================================== */

/* ----------------------------------------------------------
   Page shell
   ---------------------------------------------------------- */
.idp-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}

/* Force full-width layout: this stylesheet only loads on custom product pages
   (scoped via inc/enqueue.php), so this rule is already safe and specific. */
.site-content>.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.ap_custom-ast-container {
    max-width: 100%;
    padding: 0;
}

/* ----------------------------------------------------------
   1. HERO
   Light gray band with optional mechanic-photo background.
   Row A : product image (left) + summary card (right)
   Row B : monthly plan card   + annual plan card
   ---------------------------------------------------------- */
.idp-bg-wrapper {
    background-color: white;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    width: 100%;
    padding-bottom: 2rem;
}

.idp-hero {
    background-color: transparent;
    position: relative;
    padding: 2rem 0 2rem;
    overflow: hidden;
}

/* Semi-transparent dark overlay for text readability over background image */
.idp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.idp-hero .ast-container {
    position: relative;
    /* sit above overlay */
    display: flex;
    flex-direction: column;
}

/*  Row A  */
.idp-hero__top {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.idp-hero__image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.idp-hero__image img {
    max-height: 320px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* White info card */
.idp-hero__card {
    flex: 1.5;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.idp-hero__title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #32255e !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.idp-hero__tagline {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.idp-hero__desc {
    color: #444;
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0;
}

.idp-hero__access {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
}

.idp-hero__access em {
    color: var(--global-headtitle-color);
    font-style: italic;
}

/* Inherit sizing from parent so WC price wrapper doesn't shrink */
.idp-hero__price-range .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/*  Row B  plan cards container  */
.idp-hero__plans {
    display: flex;
    gap: 1.5rem;
}

/* ----------------------------------------------------------
   Vehicle selector (inside .idp-hero__card, conditional)
   ---------------------------------------------------------- */
.idp-hero__vehicle {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.idp-hero__vehicle-title,
.idp-hero__plans-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    line-height: 1.2rem !important;
    color: var(--global-headtitle-color) !important;
    margin: 0 0 0.75rem !important;
}

.idp-hero__vehicle-required {
    color: #e02d2d;
    margin-left: 2px;
}

/* ----------------------------------------------------------
   Plan cards — DIY variant
   ::before  = grayscale background image
   ::after   = same dark overlay as the main page wrapper
   ---------------------------------------------------------- */
.diy-variation .idp-plan {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Image layer — grayscale + slightly transparent */
.diy-variation .idp-plan::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/06/GettyImages-1289142107-1024x683.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: grayscale(1);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay — same value as .idp-hero::before on the page wrapper */
.diy-variation .idp-plan::after {
    content: '';
    position: absolute;    
    z-index: 1;
    pointer-events: none;
}

/* Keep card content above both pseudo-elements */
.diy-variation .idp-plan>* {
    position: relative;
    z-index: 2;
}

/* ----------------------------------------------------------
   Plan cards (shared)
   ---------------------------------------------------------- */
.idp-plan {
    flex: 1;
    background: rgba(200, 200, 200, 0.3);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.idp-plan__title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Promo/sale line, min-height so cards align without content */
.idp-plan__promo {
    font-weight: 600;
    font-size: 1.2rem;
    min-height: 1.3em;
}

/* Price row: strikethrough  sale price  period */
.idp-plan__pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.idp-plan__was {
    font-size: 1rem;
    color: #aaa;
    text-decoration: line-through;
}

.idp-plan__was .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
}

.idp-plan__now {
    font-size: 1.9rem;
    font-weight: 700;
    color: #32255e;
    line-height: 1;
}

.idp-plan__now .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.idp-plan__period {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* ----------------------------------------------------------
   2. PRODUCT DETAILS (two-column)
   Left  : big headline + "Best for" + description
   Right : "What's Included" checklist
   ---------------------------------------------------------- */
.idp-details {
    background: #fff;
    padding: 2rem 0;
}

.idp-details__inner {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
}

/* Left column */
.idp-details__desc {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idp-details__headline {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: #1b1e24 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.idp-details__access {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
}

.idp-details__access em {
    color: var(--global-headtitle-color);
    font-style: italic;
}

.idp-details__tagline {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

/* Right column */
.idp-details__features {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.idp-features__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1b1e24 !important;
    margin: 0 !important;
}

/* ACF-generated list with green square checkmarks */
.idp-features__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.idp-features__list ul li {
    position: relative;
    padding-left: 0.25rem;
    font-size: 0.92rem;
    color: #333;
    line-height: 1.55;
}

/* ----------------------------------------------------------
   3. TESTIMONIALS
   ---------------------------------------------------------- */
.idp-testimonials {
    background: #fff;
    padding: 1rem 0;
}

.idp-testimonials .ast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.idp-testimonials__videos {
    width: 100%;
}




.idp-testimonials__videos {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.idp-testimonials__videos video {
    flex: 1;
    min-width: 0;
    max-width: 50%;
    border-radius: 6px;
    background: #000;
    display: block;
}

/* ----------------------------------------------------------
   4. FAQ ACCORDION
   ---------------------------------------------------------- */
.idp-faq {
    padding: 3.5rem 0;
    background: #fff;
}

.idp-faq .ast-container {
    display: block;
}

.idp-faq__title {
    text-align: center;
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #32255e !important;
    margin: 0 0 2.5rem !important;
    line-height: 1.3 !important;
}

.idp-faq__list {
    margin: 0 auto;
}

.idp-faq__item {
    list-style: none;
    background-color: #f5f5f5;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}



.idp-faq__item summary::-webkit-details-marker {
    display: none;
}

.idp-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0.25rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.97rem;
    color: #1a1a2e;
    list-style: none;
    user-select: none;
    gap: 1rem;
}

.idp-faq__question:hover {
    color: #32255e;
}

.idp-faq__chevron {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid #32255e;
    border-bottom: 2px solid #32255e;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    margin-bottom: 3px;
}

.idp-faq__item[open] .idp-faq__chevron {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.idp-faq__answer {
    padding: 0.85rem 1rem 1.25rem;
    background: #f5f6f8;
    border-radius: 0 0 4px 4px;
    font-size: 0.93rem;
    color: #444;
    line-height: 1.65;
}

.idp-faq__answer p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------
   RESPONSIVE  tablet / mobile (768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

    /* Hero */
    .idp-hero {
        padding: 2rem 0;
    }

    .idp-hero__top {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Hide product image on small screens; card takes full width */
    .idp-hero__image {
        display: none;
    }

    .idp-hero__card {
        padding: 1.25rem 1rem;
        width: 100%;
    }

    .idp-hero__title {
        font-size: 2rem !important;
    }

    .idp-hero__price-range {
        font-size: 1.2rem;
    }

    /* Subscription cards stack vertically */
    .idp-hero__plans {
        flex-direction: column;
        gap: 1rem;
    }

    /* Details */
    .idp-details {
        padding: 2rem 0;
    }

    .idp-details__inner {
        flex-direction: column;
        gap: 2rem;
    }

    .idp-details__headline {
        font-size: 1.45rem !important;
    }

    /* Testimonials */
    .idp-testimonials {
        padding: 1rem 0;
    }

    .idp-testimonials__title {
        font-size: 1.4rem !important;
    }

    /* FAQ */
    .idp-faq {
        padding: 2.5rem 0;
    }

    .idp-faq__title {
        font-size: 1.4rem !important;
    }

    .idp-testimonials__videos {
        flex-direction: column;
        gap: 1.25rem;
    }

    .idp-testimonials__videos video {
        max-width: 100%;
    }
}

.solera-add-to-cart,
.solera-add-to-cart:focus,
.solera-add-to-cart:active,
.solera-add-to-cart[disabled] {
    background-color: var(--solera-sun) !important;
    color: var(--solera-jacarta) !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    filter: none !important;
    transition: none !important;
    width: 100% !important;
}

.variation_subscribe_button.is-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: auto;
    filter: grayscale(0.5);
    text-decoration: none !important;
}