.woocreate-cart-group-hidden {
    display: none !important;
}

.woocreate-cart-group-primary .wc-block-components-quantity-selector,
.woocreate-cart-group-primary .wc-block-components-product-details,
.woocreate-cart-native-total {
    display: none !important;
}

.woocreate-cart-summary,
.woocreate-cart-summary > span {
    display: block;
}

.woocreate-cart-summary {
    margin-top: .4rem;
    color: inherit;
    font-size: .92em;
    font-weight: 400;
    line-height: 1.55;
}

.woocreate-cart-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .8rem;
    margin-top: .65rem;
    justify-content: flex-start !important;
    width: 100%;
    text-align: left !important;
}

.woocreate-cart-team-detail {
    display: flex !important;
    align-items: baseline;
    gap: .25em;
    min-width: 0;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
    justify-content: flex-start;
    text-align: left !important;
    text-transform: none !important;
}

.woocreate-team-participants { text-transform: none !important; }

.woocreate-cart-team-detail strong { font: inherit; font-weight: 600; }

.woocreate-cart-actions a {
    font-size: calc(1em + 2pt);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woocreate-cart-actions .woocreate-cart-action {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wp--preset--color--primary, #1769aa);
    font-family: inherit;
    font-size: calc(1em + 2pt);
    font-style: normal;
    font-weight: 400;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.woocreate-cart-actions .woocreate-cart-action:hover,
.woocreate-cart-actions .woocreate-cart-action:focus {
    color: var(--wp--preset--color--primary, #1769aa);
    background: transparent;
}

.woocreate-team-participants {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wp--preset--color--primary, #1769aa);
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.woocreate-team-dialog {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .58);
}

.woocreate-team-dialog[hidden] { display: none; }
.woocreate-team-dialog > div {
    width: min(820px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    color: #171717;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.woocreate-team-dialog header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}
.woocreate-team-dialog h2 { margin: 0; font-size: 22px; }
.woocreate-team-dialog-content { padding: 16px 18px 20px; overflow-x: auto; }
.woocreate-team-dialog table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocreate-team-dialog th,.woocreate-team-dialog td { padding: 9px 8px; border-bottom: 1px solid #e4e4e4; text-align: left; white-space: nowrap; }

@media (max-width: 680px) {
    .woocreate-team-dialog { padding: 0; place-items: stretch; }
    .woocreate-team-dialog > div { width: 100%; max-height: 100dvh; border-radius: 0; }
    .woocreate-team-dialog-content { padding: 10px 12px 20px; }
    .woocreate-team-dialog table { font-size: 12px; }
    .woocreate-team-dialog th,.woocreate-team-dialog td { padding: 8px 6px; }
}

.woocreate-cart-unit-price {
    margin-top: .35rem;
}

.woocreate-cart-group-primary {
    position: relative;
}

.woocreate-cart-product-name {
    color: inherit !important;
    font-size: calc(1em + 2pt) !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-decoration: none !important;
}

.woocreate-cart-group-primary a.wc-block-components-product-name {
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
    pointer-events: none;
}

.woocreate-cart-group-primary a.wc-block-components-product-name
    .woocreate-cart-product-name,
.woocreate-cart-group-primary a.wc-block-components-product-name
    .woocreate-cart-summary {
    color: inherit !important;
    text-decoration: none !important;
}

.woocreate-cart-group-primary a.wc-block-components-product-name
    .woocreate-cart-action {
    pointer-events: auto;
}

.woocreate-cart-group-primary .wc-block-cart-item__product .wc-block-components-product-price {
    display: none !important;
}

.woocreate-cart-group-primary
    .wc-block-cart-item__total[data-woocreate-group-total]
    > *,
.woocreate-cart-group-primary
    .wc-block-components-order-summary-item__total-price[data-woocreate-group-total]
    > * {
    display: none !important;
}

.woocreate-cart-group-primary
    .wc-block-cart-item__total[data-woocreate-group-total]::after,
.woocreate-cart-group-primary
    .wc-block-components-order-summary-item__total-price[data-woocreate-group-total]::after {
    content: attr(data-woocreate-group-total);
    display: block;
    color: inherit;
    font: inherit;
    white-space: nowrap;
}

.woocreate-cart-group-primary .wc-block-cart-item__remove-link {
    position: absolute;
    top: 50%;
    right: 112px;
    transform: translateY(-50%);
    margin: 0 !important;
}

.woocreate-cart-group-primary .wc-block-cart-item__image,
.woocreate-cart-group-primary .wc-block-components-order-summary-item__image,
.shop_table .woocreate-cart-mockup-button {
    width: 72px !important;
    min-width: 72px;
    height: 72px;
}

.woocreate-cart-group-primary .wc-block-cart-item__image img,
.woocreate-cart-group-primary .wc-block-components-order-summary-item__image img,
.woocreate-cart-mockup {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
    cursor: zoom-in;
}

.woocreate-cart-mockup-button {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

/* Flatsome keeps thumbnail and product information in narrow table cells. */
.shop_table.cart td.product-thumbnail {
    width: 88px !important;
    min-width: 88px !important;
    padding-right: 8px !important;
    vertical-align: top;
}

.shop_table.cart td.product-name {
    min-width: 0;
    vertical-align: top;
    overflow-wrap: anywhere;
    text-align: left !important;
}

.shop_table.cart td.product-name .variation,
.shop_table.cart td.product-name .variation dt,
.shop_table.cart td.product-name .variation dd,
.woocreate-cart-group-primary .wc-block-cart-item__product,
.woocreate-cart-group-primary .wc-block-components-product-name {
    text-align: left !important;
}

.shop_table.cart .woocreate-cart-product-name {
    display: block;
    font-size: 1em !important;
    line-height: 1.25;
}

.shop_table.cart .variation {
    margin-top: .35rem;
    font-size: .9em;
    line-height: 1.35;
}

.shop_table.cart .variation dt,
.shop_table.cart .variation dd {
    margin-bottom: .1rem;
}

.woocommerce-checkout-review-order-table .woocreate-checkout-product {
    display: block;
    min-height: 64px;
}

.woocommerce-checkout-review-order-table
    .woocreate-checkout-product__mockup {
    float: left;
    width: 60px;
    height: 60px;
    margin: 0 12px 8px 0;
}

.woocommerce-checkout-review-order-table
    .woocreate-checkout-product__mockup
    .woocreate-cart-mockup-button,
.woocommerce-checkout-review-order-table
    .woocreate-checkout-product__mockup
    .woocreate-cart-mockup {
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
}

.woocommerce-checkout-review-order-table
    .woocreate-checkout-product__sizes {
    display: block;
    margin-top: .2rem;
    color: inherit;
    font-size: .92em;
    font-weight: 400;
    line-height: 1.3;
}

.woocommerce-checkout-review-order-table td.product-name::after {
    display: table;
    clear: both;
    content: "";
}

.woocreate-cart-mockup-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
}

.woocreate-cart-mockup-dialog[hidden] {
    display: none;
}

.woocreate-cart-mockup-dialog > div {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    padding: 15px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .25);
}

.woocreate-cart-mockup-stage {
    position: relative;
    width: 400px;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
    padding-bottom: 52px;
    box-sizing: border-box;
    background: #fff;
}

.woocreate-cart-mockup-stage img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.woocreate-cart-mockup-close {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border: 0 !important;
    border-radius: 0 !important;
    color: #000 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    opacity: .65;
    box-shadow: none !important;
    outline-offset: 2px;
    cursor: pointer;
}

.woocreate-cart-mockup-close:hover,
.woocreate-cart-mockup-close:focus {
    color: #000 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    opacity: 1;
}

.woocreate-cart-mockup-prev,
.woocreate-cart-mockup-next {
    position: absolute;
    z-index: 2;
    bottom: 7px;
    width: 38px;
    height: 38px;
    padding: 5px;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.woocreate-cart-mockup-prev:hover,
.woocreate-cart-mockup-prev:focus,
.woocreate-cart-mockup-next:hover,
.woocreate-cart-mockup-next:focus {
    border: 0 !important;
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocreate-cart-mockup-prev {
    left: 7px;
}

.woocreate-cart-mockup-next {
    right: 7px;
}

.woocreate-cart-mockup-prev svg,
.woocreate-cart-mockup-next svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.woocreate-cart-mockup-side {
    position: absolute;
    z-index: 2;
    bottom: 7px;
    left: 52px;
    right: 52px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 5px 10px;
    color: #111;
    background: transparent;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 600px) {
    .woocreate-cart-group-primary .wc-block-cart-item__image,
    .woocreate-cart-group-primary .wc-block-components-order-summary-item__image,
    .woocreate-cart-group-primary .wc-block-cart-item__image img,
    .woocreate-cart-group-primary .wc-block-components-order-summary-item__image img {
        width: 72px !important;
        min-width: 72px;
        height: 72px !important;
    }

    .woocreate-cart-group-primary .wc-block-cart-item__remove-link {
        position: static;
        transform: none;
        margin-top: .75rem !important;
    }

    /* Klassieke Flatsome-winkelwagen: geef productinformatie een echte
       tekstkolom en voorkom afbreken per letter. Externe kortingsregels
       blijven als afzonderlijke totalen/fee-regels volledig zichtbaar. */
    .shop_table.cart {
        table-layout: auto !important;
    }

    .shop_table.cart td.product-thumbnail {
        width: 64px !important;
        min-width: 64px !important;
        padding-right: 6px !important;
    }

    .shop_table.cart td.product-thumbnail .woocreate-cart-mockup-button,
    .shop_table.cart td.product-thumbnail .woocreate-cart-mockup {
        width: 60px !important;
        min-width: 60px !important;
        height: 60px !important;
    }

    .shop_table.cart td.product-name {
        width: auto !important;
        min-width: 132px !important;
        padding-left: 4px !important;
        padding-right: 6px !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .shop_table.cart td.product-name .variation {
        display: grid !important;
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: .35rem;
        row-gap: .12rem;
        width: 100%;
        margin-top: .3rem;
        font-size: .82em;
        line-height: 1.3;
    }

    .shop_table.cart td.product-name .variation dt,
    .shop_table.cart td.product-name .variation dd {
        float: none !important;
        clear: none !important;
        width: auto !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .shop_table.cart td.product-name .variation dd p {
        margin: 0;
    }

    .shop_table.cart td.product-quantity {
        width: 98px !important;
        min-width: 98px !important;
    }

    .shop_table.cart .woocreate-cart-actions {
        gap: .35rem;
        margin-top: .45rem;
    }
}
.woocreate-cart-price-exceptions {
    white-space: normal;
}

.woocreate-unavailable-cart-notice {
    position: relative;
    padding-right: 52px !important;
}

.woocreate-unavailable-cart-notice-close {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    color: #000 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    opacity: .65;
    transform: translateY(-50%);
    cursor: pointer;
}

.woocreate-unavailable-cart-notice-close:hover,
.woocreate-unavailable-cart-notice-close:focus {
    color: #000 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    opacity: 1;
}
