/*----------------------------------------*/
/*  QUOTE BASKET                           */
/*  WooCommerce cart/checkout pages        */
/*  (/quote/, page.php → cart/cart.php,    */
/*  cart-empty.php, checkout/form-*.php,   */
/*  thankyou.php).                         */
/*  No Figma frame. Title on the ground,   */
/*  the products as white cards on the     */
/*  left, the "save to project" strip and  */
/*  the request form as a white card on    */
/*  the right. Fields/steppers: inner.css. */
/*  Replaces the Basket and Basket Empty & */
/*  Received blocks in product-style.css.  */
/*----------------------------------------*/

body.rd-inner main > .header-empty-space {
    display: none;
}

/* head: the page's gradient banner becomes the light page title */
body.rd-inner main > .section:has(> .banner-entry.small) {
    padding: clamp(60px, 5.2vw, 100px) var(--rd-gutter) clamp(30px, 3.1vw, 60px);
}

body.rd-inner main > .section > .banner-entry.small {
    margin: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
}

body.rd-inner main > .section > .banner-entry.small .banner-entry-bg {
    display: none;
}

body.rd-inner main > .section > .banner-entry.small .banner-entry-align {
    display: block;
    height: auto !important;
    min-height: 0;
    padding: 0;
    text-align: left;
}

body.rd-inner main > .section > .banner-entry.small .banner-entry-align::before {
    content: none;
}

body.rd-inner main > .section > .banner-entry.small :is(.container, .row, .row > [class*="col-"]) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.rd-inner main > .section > .banner-entry.small .row {
    display: block;
}

body.rd-inner main > .section > .banner-entry.small .title {
    font-size: clamp(40px, 3.75vw, 72px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-transform: none;
}

body.rd-inner main > .section > .banner-entry.small .h3 {
    max-width: 725px;
    margin-top: 16px;
    font-size: clamp(18px, 1.15vw, 22px);
    line-height: 1.35;
    font-weight: 400;
    color: var(--rd-txt-on-light-muted);
}

body.rd-inner main > .section > .spacer-sm,
body.rd-inner .basket-section > .spacer-md {
    display: none;
}


/*--------------------*/
/* - LAYOUT           */
/*--------------------*/
body.rd-inner .basket-section {
    padding: 0 var(--rd-gutter) var(--in-section);
}

body.rd-inner .basket-section > .container {
    max-width: var(--in-wide);
    width: 100%;
    padding: 0;
}

body.rd-inner .basket-section > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: start;
    gap: 16px;
    margin: 0;
}

body.rd-inner .basket-section > .container > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* empty basket spans both columns */
body.rd-inner .basket-section > .container > .row:has(.empty__basket) {
    display: block;
}

body.rd-inner .basket-section .woocommerce-notices-wrapper:empty {
    display: none;
}

body.rd-inner .basket__title {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-size: clamp(28px, 2.1vw, 40px);
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
}


/*--------------------*/
/* - PRODUCTS         */
/*--------------------*/
body.rd-inner .basket__prd--wrap {
    margin: 0;
}

body.rd-inner .basket__prd--inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.rd-inner .basket__prd--inner > * {
    margin: 0;
}

body.rd-inner .basket__prd {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 70px 20px 20px;
    background-color: var(--rd-white);
    border: 0;
    border-radius: var(--rd-radius);
}

body.rd-inner .basket__prd .btn-close {
    top: 20px;
    right: 20px;
}

body.rd-inner .basket__prd--img {
    width: 140px;
    height: 140px;
    margin: 0;
    background-color: var(--rd-surface);
    border-radius: var(--rd-radius);
}

body.rd-inner .basket__prd--img img {
    width: 84%;
    height: 84%;
    max-width: none;
    object-fit: contain;
}

body.rd-inner .basket__prd--info {
    flex: 1 1 auto;
    min-width: 0;
}

body.rd-inner .basket__prd--name {
    font-size: clamp(22px, 1.5vw, 28px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    overflow-wrap: anywhere;
}

body.rd-inner .basket__prd--opt {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
}

body.rd-inner .basket__prd--opt li {
    padding: 4px 10px;
    background-color: var(--rd-surface);
    border-radius: var(--rd-radius-pill);
    font-size: 15px;
    line-height: 1.3;
    color: var(--rd-txt-on-light-muted);
}

body.rd-inner .basket__prd--opt li::before {
    content: none;
}

body.rd-inner .basket__prd--btn-wrap {
    margin: 20px 0 0;
}

body.rd-inner .basket__prd--wrap > .btn {
    margin-top: 16px;
}

@media (min-width: 1200px) {
    body.rd-inner a.basket__prd--name:hover {
        text-decoration: underline;
        text-decoration-color: var(--rd-accent);
        text-underline-offset: 3px;
    }

    body.rd-inner a.basket__prd--img:hover {
        opacity: .8;
    }
}


/*--------------------*/
/* - REQUEST FORM     */
/*--------------------*/
body.rd-inner .prj__save-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    padding: 20px;
    background-color: var(--rd-dark);
    border-radius: var(--rd-radius);
}

body.rd-inner .prj__save-wrap img {
    width: 36px;
    max-width: none;
    margin: 0;
    filter: brightness(0) invert(1);
}

body.rd-inner .prj__save-wrap p {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.35;
    color: var(--rd-txt-muted);
}

body.rd-inner .prj__save-wrap .btn {
    flex-shrink: 0;
    margin: 0;
    height: 46px;
    padding: 0 18px;
}

body.rd-inner .basket__form {
    max-width: none;
    padding: 30px;
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
}

body.rd-inner .basket__form .basket__title {
    margin-bottom: 24px;
}

body.rd-inner .basket__form .form-block + .form-block {
    margin-top: 12px;
}

body.rd-inner .basket__form .form-block > .title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rd-txt-on-light-muted);
}

body.rd-inner .basket__form .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 0;
}

body.rd-inner .basket__form .checkbox-entry-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 6px 0 18px;
}

body.rd-inner .basket__form .checkbox-entry-wrap .form-row {
    margin: 0;
}

body.rd-inner .basket__form .checkbox-entry-wrap .checkbox-entry {
    margin: 0;
}

body.rd-inner .basket__form .caption {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--rd-txt-on-light-muted);
}

body.rd-inner .basket__form .caption a {
    color: var(--rd-txt-on-light);
}

/* WooCommerce's single hidden payment method */
body.rd-inner .basket__form .wc_payment_methods {
    display: none;
}

body.rd-inner .basket__form #payment {
    margin: 16px 0 0;
    background: none;
}

body.rd-inner .basket__form #payment .btn {
    position: relative;
    width: 100%;
}

body.rd-inner .basket__form #payment .btn::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url("../../img/redesign/icons/arrow-cta.svg") no-repeat center / contain;
}


/*--------------------*/
/* - EMPTY / RECEIVED */
/*--------------------*/
body.rd-inner .empty__basket,
body.rd-inner .rc__basket {
    max-width: none;
    padding: clamp(40px, 5.2vw, 100px) clamp(24px, 3.1vw, 60px);
    background-color: var(--rd-white);
    border: 0;
    border-radius: var(--rd-radius);
    text-align: left;
}

body.rd-inner .empty__basket--title,
body.rd-inner .rc__basket--title {
    font-size: clamp(30px, 2.5vw, 48px);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-transform: none;
}

body.rd-inner .empty__basket--info,
body.rd-inner .rc__basket--info {
    max-width: 725px;
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    color: var(--rd-txt-on-light-muted);
    opacity: 1;
}

body.rd-inner .empty__basket .btn,
body.rd-inner .rc__basket > .btn {
    margin-top: 24px;
}

body.rd-inner .rc__quote--wrap {
    max-width: 725px;
    margin: 24px 0 0;
    padding: 20px 24px;
    background-color: var(--rd-surface);
    border-radius: var(--rd-radius);
    font-size: 20px;
    line-height: 1.4;
    color: var(--rd-txt-on-light);
}


/*--------------------*/
/* - TABLET (<1200px) */
/*--------------------*/
@media (max-width: 1199px) {
    body.rd-inner .basket-section > .container > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}


/*--------------------*/
/* - PHONE (<768px)   */
/*--------------------*/
@media (max-width: 767px) {
    body.rd-inner .basket__prd {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    body.rd-inner .basket__prd .btn-close {
        top: 16px;
        right: 16px;
    }

    body.rd-inner .basket__prd--img {
        width: 96px;
        height: 96px;
    }

    body.rd-inner .basket__prd--wrap > .btn {
        width: 100%;
    }

    body.rd-inner .prj__save-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    body.rd-inner .prj__save-wrap .btn {
        width: 100%;
    }

    body.rd-inner .basket__form {
        padding: 20px;
    }
}

@media (min-width: 1200px) {
    body.rd-inner .basket__form #payment .btn:hover::after {
        background-image: url("../../img/redesign/icons/arrow-cta-accent.svg?v=6");
    }
}
