/* Aanbevolen combinaties ([ricks_product_combinations]) */
.rickshandel-combo {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--rickshandel-border, #E7EAF3);
    border-radius: 10px;
    font-family: var(--rickshandel-font, 'Poppins', sans-serif);
    color: var(--rickshandel-text, #374151);
}

.rickshandel-combo .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rickshandel-combo__items {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.rickshandel-combo__plus {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    /* Centre the plus on the product images: checkbox (32) + gap (6) + half the image height. */
    margin-top: calc(38px + var(--rickshandel-combo-img, 180px) / 2 - 15px);
    font-size: 30px;
    line-height: 30px;
    font-weight: 300;
    color: var(--rickshandel-text, #374151);
}

.rickshandel-combo__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    transition: opacity 0.2s ease;
}

.rickshandel-combo__item.is-off {
    opacity: 0.45;
}

.rickshandel-combo__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.rickshandel-combo__check input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--rickshandel-navy, #174895);
    cursor: pointer;
}

.rickshandel-combo__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--rickshandel-combo-img, 180px);
    margin-top: 6px;
    overflow: hidden;
    border-radius: 8px;
}

.rickshandel-combo__image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.rickshandel-combo__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 10px;
}

.rickshandel-combo__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--rickshandel-heading, #111827);
    text-decoration: none;
}

.rickshandel-combo__name:hover {
    color: var(--rickshandel-navy, #174895);
    text-decoration: underline;
}

.rickshandel-combo__price {
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--rickshandel-red, #D0202D);
}

.rickshandel-combo__price del {
    margin-right: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--rickshandel-muted, #5B6472);
}

.rickshandel-combo__price ins {
    text-decoration: none;
}

.rickshandel-combo__price .vat-price,
.rickshandel-combo__price .woocommerce-price-suffix {
    display: none;
}

.rickshandel-combo__qty {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 104px;
    height: 36px;
    margin-top: 10px;
    border: 1px solid var(--rickshandel-border-input, #D5DCE8);
    border-radius: 6px;
    background: #FFFFFF;
}

.rickshandel-combo__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--rickshandel-text, #374151);
    cursor: pointer;
}

.rickshandel-combo__qty-input {
    box-sizing: border-box;
    width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--rickshandel-heading, #111827);
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.rickshandel-combo__qty-input::-webkit-outer-spin-button,
.rickshandel-combo__qty-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.rickshandel-combo__summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border-radius: 8px;
    background: var(--rickshandel-tint, #F4F7FB);
}

.rickshandel-combo__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rickshandel-combo__count {
    font-size: 13px;
    line-height: 20px;
    color: var(--rickshandel-muted, #5B6472);
}

.rickshandel-combo__count-short {
    display: none;
}

.rickshandel-combo__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.rickshandel-combo__total-label {
    font-size: 15px;
    line-height: 22px;
}

.rickshandel-combo__total-amount {
    font-size: 26px;
    line-height: 32px;
    color: var(--rickshandel-heading, #111827);
}

.rickshandel-combo__vat {
    font-size: 13px;
    line-height: 20px;
    color: var(--rickshandel-muted, #5B6472);
}

.rickshandel-combo__add {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--rickshandel-green, #1B7F3E);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.rickshandel-combo__add svg {
    flex-shrink: 0;
}

.rickshandel-combo__add:hover {
    background: var(--rickshandel-green-hover, #166B34);
}

.rickshandel-combo__add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rickshandel-combo__add.is-loading {
    cursor: progress;
}

.rickshandel-combo__message {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
}

.rickshandel-combo__message:empty {
    display: none;
}

.rickshandel-combo__message.is-error {
    color: #B4232C;
}

.rickshandel-combo__message.is-success {
    color: var(--rickshandel-green, #1B7F3E);
}

@media (max-width: 1119px) {
    .rickshandel-combo {
        --rickshandel-combo-img: 150px;
        grid-template-columns: minmax(0, 1fr) 248px;
        gap: 16px;
    }

    .rickshandel-combo__summary {
        padding: 18px;
    }
}

@media (max-width: 1023px) {
    .rickshandel-combo {
        --rickshandel-combo-img: 140px;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .rickshandel-combo__summary {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0 0;
        border-top: 1px solid var(--rickshandel-border, #E7EAF3);
        border-radius: 0;
        background: transparent;
    }

    .rickshandel-combo__total-amount {
        font-size: 20px;
        line-height: 26px;
    }
}

@media (max-width: 767px) {
    .rickshandel-combo {
        padding: 4px 12px 12px;
    }

    .rickshandel-combo__items {
        flex-direction: column;
        align-items: stretch;
    }

    .rickshandel-combo__plus {
        display: none;
    }

    /* Phone: name on top, price and quantity next to each other below it (as in the design). */
    .rickshandel-combo__item {
        display: grid;
        grid-template-columns: 28px 56px minmax(0, 1fr) auto;
        grid-template-areas: "check image name name" "check image price qty";
        column-gap: 10px;
        row-gap: 6px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--rickshandel-border, #E7EAF3);
        text-align: left;
    }

    .rickshandel-combo__check {
        grid-area: check;
        width: 28px;
        height: 44px;
    }

    .rickshandel-combo__image {
        grid-area: image;
        width: 56px;
        height: 56px;
        margin: 0;
        border: 1px solid var(--rickshandel-border, #E7EAF3);
        border-radius: 6px;
        background: #FFFFFF;
    }

    .rickshandel-combo__body {
        display: contents;
    }

    .rickshandel-combo__name {
        grid-area: name;
        align-self: end;
        min-height: 0;
        text-align: left;
    }

    .rickshandel-combo__price {
        grid-area: price;
        align-self: center;
        font-size: 14px;
        line-height: 20px;
        text-align: left;
    }

    .rickshandel-combo__qty {
        grid-area: qty;
        justify-self: end;
        width: 88px;
        height: 32px;
        margin: 0;
    }

    .rickshandel-combo__qty-btn {
        width: 28px;
        font-size: 15px;
    }

    .rickshandel-combo__qty-input {
        width: 30px;
    }

    .rickshandel-combo__summary {
        gap: 10px;
        padding: 12px 0 0;
        border-top: 0;
    }

    .rickshandel-combo__info {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px 12px;
        width: 100%;
        font-size: 14px;
        line-height: 20px;
    }

    .rickshandel-combo__count {
        display: none;
    }

    .rickshandel-combo__count-short {
        display: inline;
        color: var(--rickshandel-muted, #5B6472);
    }

    .rickshandel-combo__total {
        gap: 4px;
        white-space: nowrap;
    }

    .rickshandel-combo__total-label {
        font-size: 14px;
        line-height: 20px;
    }

    .rickshandel-combo__total-label::after {
        content: ":";
    }

    .rickshandel-combo__total-amount {
        font-size: 18px;
        line-height: 24px;
    }

    .rickshandel-combo__vat {
        display: none;
    }

    .rickshandel-combo__add {
        width: 100%;
        height: 44px;
        font-size: 14px;
    }

    .rickshandel-combo__add svg {
        display: none;
    }
}
