/* ==========================================================================
   Single van page (refresh). The RnB booking form markup is untouched; only
   layout, spacing and type change. Scoped to body.single-product.
   ========================================================================== */

body.single-product {
    --tvg-radius: 18px;
    --tvg-muted: #6b6d73;
    --tvg-line: rgba(64, 66, 72, 0.12);
    --tvg-mint: #d9e7e3;
    --tvg-mint-ink: #2f5f57;
}

/* The old wave photo banner is dropped: the page starts with the van. */
body.single-product .top-banner--vans {
    display: none;
}

/* Breadcrumbs quieter. */
body.single-product .woocommerce-breadcrumb,
body.single-product #breadcrumbs {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto 0;
    font-size: 14px;
    color: var(--tvg-muted);
}

/* Two columns: gallery left, title + facts + booking right (sticky). */
body.single-product div.product {
    width: min(1240px, calc(100% - 40px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0 clamp(28px, 4vw, 56px);
    align-items: start;
}

body.single-product div.product > .onsale,
body.single-product div.product > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

body.single-product div.product #product-thumbs,
body.single-product div.product .woocommerce-product-gallery {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    float: none !important;
    margin: 0 0 28px;
    border-radius: var(--tvg-radius);
    overflow: hidden;
}

body.single-product div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: var(--tvg-radius);
    display: block;
}

body.single-product div.product .summary.entry-summary {
    grid-column: 2;
    grid-row: 1 / span 3;
    float: none !important;
    width: 100% !important;
    margin: 0 0 28px;
    padding: 0;
}

/* Hide the old "€ 60" corner badge; the facts block carries the price. */
body.single-product .prodPrice,
body.single-product .onsale,
body.single-product .woocommerce-product-gallery .prodPrice {
    display: none !important;
}

body.single-product .product_title {
    font-family: 'Lora', serif;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--black-color);
    margin: 0 0 10px;
}

.tvg-vfacts__price {
    font-size: 18px;
    color: var(--tvg-muted);
    margin: 0 0 14px;
}

.tvg-vfacts__price strong {
    font-size: 30px;
    color: var(--black-color);
}

.tvg-vfacts__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
}

.tvg-vfacts__chips li {
    margin: 0;
    padding: 5px 13px;
    border-radius: var(--border-radius);
    background: var(--tvg-mint);
    color: var(--tvg-mint-ink);
    font-size: 14px;
    font-weight: 700;
}

body.single-product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--black-color);
    margin-bottom: 22px;
}

body.single-product .woocommerce-product-details__short-description > div {
    margin-bottom: 8px;
}

/* Booking form becomes a card. */
body.single-product form.rnb-cart {
    background: var(--beige-color);
    border-radius: var(--tvg-radius);
    padding: clamp(18px, 3vw, 28px);
}

body.single-product form.rnb-cart input,
body.single-product form.rnb-cart select {
    font-family: 'Lora', serif;
}

body.single-product form.rnb-cart .btn,
body.single-product form.rnb-cart button[type="submit"] {
    border-radius: var(--border-radius);
}

/* Tabs: full width below, pill style. */
body.single-product .woocommerce-tabs {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 28px;
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    border: none;
    list-style: none;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
    display: none;
}

body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 9px 20px !important;
    border-radius: var(--border-radius) !important;
    background: var(--beige-color) !important;
    color: var(--black-color) !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    background: var(--dark-beige-color) !important;
    color: var(--white-color) !important;
}

body.single-product .woocommerce-Tabs-panel {
    padding: 4px 0 0;
    font-size: 16px;
    line-height: 1.7;
}

body.single-product .woocommerce-Tabs-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
}

body.single-product .woocommerce-Tabs-panel li {
    margin: 0;
    padding: 0;
}

body.single-product .woocommerce-Tabs-panel table {
    width: 100%;
}

/* Related vans */
.tvg-related {
    grid-column: 1 / -1;
    margin: clamp(40px, 6vw, 72px) 0;
}

.tvg-related h2 {
    font-family: 'Lora', serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    text-align: center;
    color: var(--dark-beige-color);
    margin: 0 0 26px;
}

.tvg-related__grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
    .tvg-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    body.single-product div.product {
        grid-template-columns: 1fr;
    }

    body.single-product div.product #product-thumbs,
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary.entry-summary {
        grid-column: 1;
        grid-row: auto;
    }

    body.single-product .woocommerce-tabs {
        grid-column: 1;
        grid-row: auto;
    }

    body.single-product .woocommerce-Tabs-panel ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tvg-related__grid {
        grid-template-columns: 1fr;
    }
}

/* Attribute and feature lists: one readable column in the narrow left column. */
body.single-product .woocommerce-Tabs-panel ul {
    grid-template-columns: 1fr;
}

body.single-product .woocommerce-Tabs-panel li {
    display: block;
    font-size: 16px;
    line-height: 1.5;
}

body.single-product .woocommerce-Tabs-panel li b,
body.single-product .woocommerce-Tabs-panel li strong {
    display: inline;
}


/* ---------- Booking card, tidier ---------- */

body.single-product form.rnb-cart {
    padding: clamp(20px, 3vw, 30px);
}

body.single-product form.rnb-cart .rnb-component-wrapper {
    margin: 0 0 18px;
}

body.single-product form.rnb-cart h5,
body.single-product form.rnb-cart label,
body.single-product form.rnb-cart .rnb-component-wrapper > span {
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--black-color);
    margin: 0 0 6px;
}

/* Every field the same width and height. */
body.single-product form.rnb-cart .date-time-picker,
body.single-product form.rnb-cart .date-time-picker input,
body.single-product form.rnb-cart .rnb-select-box,
body.single-product form.rnb-cart select,
body.single-product form.rnb-cart .chosen-container {
    width: 100% !important;
    max-width: 100% !important;
}

body.single-product form.rnb-cart input[type="text"],
body.single-product form.rnb-cart select,
body.single-product form.rnb-cart .chosen-container-single .chosen-single {
    min-height: 46px;
    border: 1px solid var(--tvg-line) !important;
    border-radius: 12px !important;
    background: var(--white-color) !important;
    box-shadow: none !important;
    font-size: 15px;
}

body.single-product form.rnb-cart .chosen-container-single .chosen-single {
    display: flex;
    align-items: center;
    padding: 0 14px;
}

body.single-product form.rnb-cart .chosen-container-single .chosen-single div {
    top: 11px;
}

body.single-product form.rnb-cart .date-time-picker input {
    padding-left: 38px;
}

/* Extras and fees: aligned rows with a hairline between them. */
body.single-product form.rnb-cart .rnb-component-wrapper .rnb-toggle-wrapper,
body.single-product form.rnb-cart .payable-categories .redq-quantity,
body.single-product form.rnb-cart .booking-section-single {
    padding: 6px 0;
}

body.single-product form.rnb-cart .custom_deposit_price,
body.single-product form.rnb-cart .rnb-notice {
    margin: 12px 0;
    border-radius: 12px;
    font-size: 14px;
}

body.single-product form.rnb-cart button[type="submit"],
body.single-product form.rnb-cart .rnb-cart-btn {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--border-radius);
}

/* ---------- Attributes / features: label and value on one tidy line ---------- */

body.single-product .woocommerce-Tabs-panel ul {
    gap: 0;
}

body.single-product .woocommerce-Tabs-panel li {
    padding: 11px 0;
    border-bottom: 1px solid var(--tvg-line);
    font-weight: 400;
}

body.single-product .woocommerce-Tabs-panel li:last-child {
    border-bottom: none;
}

body.single-product .woocommerce-Tabs-panel li b,
body.single-product .woocommerce-Tabs-panel li strong,
body.single-product .woocommerce-Tabs-panel li span {
    font-weight: 700;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 15px;
}

/* Date fields and attribute rows use the full width. */
body.single-product form.rnb-cart .date-time-picker *,
body.single-product form.rnb-cart .rnb-component-wrapper .pickup_date,
body.single-product form.rnb-cart .rnb-component-wrapper .dropoff_date {
    max-width: 100%;
}

body.single-product form.rnb-cart .date-time-picker .rnb-datepicker,
body.single-product form.rnb-cart .date-time-picker .rnb-date-picker,
body.single-product form.rnb-cart .date-time-picker .pickup-date-picker,
body.single-product form.rnb-cart .date-time-picker .dropoff-date-picker,
body.single-product form.rnb-cart .date-time-picker > div,
body.single-product form.rnb-cart .date-time-picker > div > div {
    width: 100% !important;
    float: none !important;
}

body.single-product .woocommerce-Tabs-panel ul.attributes,
body.single-product .woocommerce-Tabs-panel ul.attributes li {
    width: 100% !important;
    max-width: none !important;
}

body.single-product .woocommerce-Tabs-panel ul.attributes li {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

body.single-product .woocommerce-Tabs-panel .attribute-icon {
    display: none;
}

body.single-product .woocommerce-Tabs-panel .attribute-name {
    font-weight: 700;
}

body.single-product form.rnb-cart .pick-up-date-picker,
body.single-product form.rnb-cart .drop-off-date-picker {
    display: block;
    position: relative;
    width: 100%;
}

body.single-product form.rnb-cart .pick-up-date-picker input,
body.single-product form.rnb-cart .drop-off-date-picker input {
    width: 100% !important;
    box-sizing: border-box;
}

body.single-product form.rnb-cart .pick-up-date-picker i,
body.single-product form.rnb-cart .drop-off-date-picker i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--dark-beige-color);
}

body.single-product #reviews,
body.single-product .woocommerce-Reviews {
    display: none;
}

/* Feature rows: tick and text on one baseline, the tick as a small mint badge. */
body.single-product .woocommerce-Tabs-panel li.checked {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
}

body.single-product .woocommerce-Tabs-panel li.checked::before {
    content: '\2713';
    position: static;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 50%;
    background: var(--tvg-mint);
    color: var(--tvg-mint-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    transform: none;
    top: auto;
    left: auto;
}

body.single-product .woocommerce-Tabs-panel li.checked {
    font-weight: 400;
}

/* The theme styles these with #tab-... ids; match that so the ticks sit inline. */
body.single-product #tab-features li.checked {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 11px 0 !important;
    font-weight: 400 !important;
}

body.single-product #tab-features li.checked::before {
    position: static !important;
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    background: var(--tvg-mint);
    color: var(--tvg-mint-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

body.single-product #tab-attributes li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

body.single-product #tab-attributes .attribute-name {
    padding-left: 28px !important;
    position: relative;
}

body.single-product #tab-attributes .attribute-name::before {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    background: var(--tvg-mint);
    color: var(--tvg-mint-ink);
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

/* Phones: the gallery slider must not push the page wider than the screen. */
@media (max-width: 900px) {
    body.single-product div.product {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-product div.product > * {
        min-width: 0;
        max-width: 100%;
    }

    body.single-product div.product #product-thumbs,
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .flex-viewport {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden;
    }
}
