
/* RVH 2.8.4.3 – rebuilt purchase card */
.rvh-v271-purchase-card {
    position: sticky;
}

.rvh-v271-purchase-card .rvh-v271-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.rvh-v271-purchase-card .rvh-v271-price-label {
    margin: 0;
    min-width: 0;
}

.rvh-v271-purchase-card .rvh-v283-status {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.15 !important;
    white-space: nowrap;
}

.rvh-v271-purchase-card .rvh-v284-user-actions {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0;
}

.rvh-v271-purchase-card .rvh-v284-compare-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.rvh-v271-purchase-card .rvh-v284-toggle,
.rvh-v271-purchase-card .rvh-v284-compare-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--rvh-button);
    border-radius: var(--rvh-radius);
    background: #fff;
    color: var(--rvh-button);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rvh-v271-purchase-card .rvh-v284-toggle[aria-pressed="true"] {
    background: var(--rvh-button);
    color: #fff;
}

.rvh-v271-purchase-card .rvh-v284-compare-link {
    min-height: 44px;
}

/* Compacte aanvraagknoppen in een nette 2-kolomsindeling. */
.rvh-v271-purchase-card .rvh-v283-cta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 14px 0 !important;
}

.rvh-v271-purchase-card .rvh-v283-cta-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    min-height: 36px;
    padding: 7px 9px !important;
    font-size: 12px !important;
    line-height: 1.15;
    text-align: center;
}

/* Alleen PDF en delen blijven in de onderste gereedschapsrij. */
.rvh-v271-purchase-card .rvh-v281-tools {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.rvh-v271-purchase-card .rvh-v281-tools > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    margin: 0 !important;
    text-align: center;
}

/* Oude dubbele favorietknoppen nooit in deze kaart tonen. */
.rvh-v271-purchase-card .rvh-v281-favorite {
    display: none !important;
}

@media (max-width: 600px) {
    .rvh-v271-purchase-card {
        position: static;
        padding: 22px;
    }

    .rvh-v271-purchase-card .rvh-v271-price-head {
        align-items: flex-start;
    }

    .rvh-v271-purchase-card .rvh-v284-compare-row,
    .rvh-v271-purchase-card .rvh-v283-cta-grid,
    .rvh-v271-purchase-card .rvh-v281-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rvh-v271-purchase-card .rvh-v284-toggle,
    .rvh-v271-purchase-card .rvh-v284-compare-link {
        font-size: 13px;
    }
}


/* 2.8.4.4: laadvolgorde/specificiteit tegen thema- en mobiele overrides */
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v271-price-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-user-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-link {
    display: flex !important;
    width: 100% !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v283-cta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v283-cta-grid > a {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    white-space: normal !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v281-tools {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 600px) {
    body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v283-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* 2.8.4.5 gewenste volgorde: Vergelijken + Bekijk vergelijking, daarna Favoriet breed */
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-row > * {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-favorite {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-link {
    min-height: 42px !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
}

@media (max-width: 420px) {
    body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-row > * {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 12px !important;
    }
}

/* 4.0.5.23: één maat en ritme voor alle aankoop-CTA's. */
body.single-product .rvh-v271-page .rvh-v271-purchase-card {
    --rvh-cta-height: 52px;
    --rvh-cta-gap: 12px;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v271-buy-form,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v271-contact-actions,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-user-actions,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v283-cta-grid,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v281-tools {
    gap: var(--rvh-cta-gap) !important;
    margin-top: var(--rvh-cta-gap) !important;
    margin-bottom: 0 !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v271-buy-form .single_add_to_cart_button,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v271-buy-button,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v271-contact-actions > a,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-toggle,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-link,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v283-cta-grid > a,
body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v281-tools > * {
    box-sizing: border-box !important;
    width: 100% !important;
    height: var(--rvh-cta-height) !important;
    min-height: var(--rvh-cta-height) !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
}

body.single-product .rvh-v271-page .rvh-v271-purchase-card .rvh-v284-compare-row {
    gap: var(--rvh-cta-gap) !important;
}
