/* Logos of the « Personnalisation » lines (cart, block cart, checkout, order pages): mirink-cart.js */
.mirink-cart-markings { display: flex; flex-direction: column; gap: .2rem; }
.mirink-cart-markings br { display: none; }
.mirink-cart-marking { display: block; overflow-wrap: anywhere; }
.mirink-cart-logo { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: zoom-in; }
.mirink-cart-logo:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.mirink-lightbox { width: min(40rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 12px; background: #fff; color: #131a36; box-shadow: 0 20px 60px rgba(11, 16, 32, .35); }
.mirink-lightbox::backdrop { background: rgba(11, 16, 32, .6); }
.mirink-lightbox__box { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 3.25rem 1rem 1rem; }
.mirink-lightbox__close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(11, 16, 32, .16); border-radius: 10px; background: #fff; color: inherit; font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.mirink-lightbox__close:focus-visible { outline: 2px solid #4c3fd4; outline-offset: 2px; }
.mirink-lightbox__img { display: block; width: 100%; max-height: 65vh; object-fit: contain; border-radius: 8px; background: #f5f5f7; }
.mirink-lightbox__title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.mirink-lightbox__details { margin: 0; font-size: .875rem; color: #3a4878; }

/* « Proceed to checkout » while the cart is refused (personalisation minimum…). */
.mirink-cart-blocked, .mirink-cart-blocked:hover, .wc-block-cart__submit-button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Configuration of a printed line: one option per line (« Support : … »),
   instead of the block cart's « a: b / c: d / … » paragraph. */
.wc-block-cart .wc-block-components-product-details,
.wc-block-checkout .wc-block-components-product-details {
    margin: .5rem 0;
    font-size: 13px;
    line-height: 1.45;
}
.wc-block-cart .wc-block-components-product-details > span,
.wc-block-checkout .wc-block-components-product-details > span {
    display: block;
}
.wc-block-components-product-details [aria-hidden="true"] { display: none; }
.wc-block-components-product-details__name { opacity: .7; }
.wc-block-components-product-details__value { overflow-wrap: anywhere; }
.woocommerce-cart-form dl.variation { font-size: 13px; line-height: 1.45; }
.woocommerce-cart-form dl.variation dt,
.woocommerce-cart-form dl.variation dd { display: inline; float: none; margin: 0; padding: 0; }
.woocommerce-cart-form dl.variation dt { opacity: .7; }
.woocommerce-cart-form dl.variation dd::after { content: ""; display: block; }
.woocommerce-cart-form dl.variation dd p { display: inline; margin: 0; }

/* Block cart line whose quantity lives in the configuration (no quantity
   selector): the unit price repeats the line total, and the remove button
   stood alone where the selector would be. Unit price hidden, remove
   button next to the product name. */
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap:not(:has(.wc-block-components-quantity-selector)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: .75rem;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap:not(:has(.wc-block-components-quantity-selector)) > * {
    grid-column: 1 / -1;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap:not(:has(.wc-block-components-quantity-selector)) > .wc-block-components-product-name {
    grid-column: 1;
    grid-row: 1;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap:not(:has(.wc-block-components-quantity-selector)) > .wc-block-cart-item__quantity {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap:not(:has(.wc-block-components-quantity-selector)) > .wc-block-cart-item__prices {
    display: none;
}

/* Block cart where no line has a quantity selector (wide and narrow):
   no « Total » column; each line reads name … price, remove button,
   vertically centred, and its text runs the full width. */
table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__header-total,
table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-item__total {
    display: none;
}
table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}
table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__wrap > .wc-block-cart-item__prices {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}
table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__wrap > .wc-block-cart-item__quantity {
    grid-column: 3;
    display: flex;
    align-items: center;
}
table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__wrap > .wc-block-components-product-name {
    margin: 0;
}
/* Narrow screens: the picture on top, centred (152 px square), the
   description below it over the full width. */
.wc-block-cart.is-mobile table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
}
.wc-block-cart.is-mobile table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 152px;
    padding: 0;
}
.wc-block-cart.is-mobile table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__image img {
    width: 152px;
    max-width: 152px;
    height: auto;
}
.wc-block-cart.is-mobile table.wc-block-cart-items:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 1;
    grid-row: 2;
}

/* Long configurations folded after 4 options (mirink-cart.js). */
.wc-block-components-product-details.mirink-folded > :nth-child(n+5),
dl.variation.mirink-folded > dt:nth-of-type(n+5),
dl.variation.mirink-folded > dd:nth-of-type(n+5) {
    display: none !important;
}
.mirink-fold-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0 0 .25rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.mirink-fold-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
