.mirabel-customization {
    margin: 20px 0;
    position: relative;
}

.mirabel-customization--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mirabel-customization--disabled .mirabel-section,
.mirabel-customization--disabled .mirabel-configs,
.mirabel-customization--disabled .mirabel-signup-hint,
.mirabel-customization--disabled .mirabel-programme-notice,
.mirabel-customization--disabled .mirabel-price-breakdown {
    pointer-events: none;
    user-select: none;
    filter: grayscale(100%);
}

.mirabel-section {
    margin-bottom: 16px;
}

.mirabel-section__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2a7f72;
}

/* ── Placement cards ── */

.mirabel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mirabel-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.mirabel-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mirabel-option__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 12px 8px 10px;
    border: 2px dashed #c5c5c5;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    transition: all 0.2s ease;
}

.mirabel-option__check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2a7f72;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    z-index: 2;
    color: #fff;
}

.mirabel-option:hover .mirabel-option__inner {
    border-color: #2a7f72;
    box-shadow: 0 2px 8px rgba(42, 127, 114, 0.15);
}

.mirabel-option__input:checked ~ .mirabel-option__inner {
    border-style: solid;
    border-color: #2a7f72;
    background: #f0f9f7;
    box-shadow: 0 2px 10px rgba(42, 127, 114, 0.2);
}

.mirabel-option__input:checked ~ .mirabel-option__check {
    opacity: 1;
    transform: scale(1);
}

.mirabel-option__image {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.mirabel-option__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mirabel-option__placeholder {
    color: #bbb;
}

.mirabel-option__label {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    line-height: 1.3;
    word-break: break-word;
}

.mirabel-option__input:checked ~ .mirabel-option__inner .mirabel-option__label {
    color: #2a7f72;
}

/* ── Config panels (per placement) ── */

.mirabel-configs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mirabel-config-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;

    opacity: 0;
    max-height: 0;
    transition: all 0.25s ease;
}

.mirabel-config-panel--open {
    opacity: 1;
    max-height: 900px;
    border-color: #2a7f72;
}

.mirabel-config__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f9f7;
    border-bottom: 1px solid #d6ece8;
    font-size: 13px;
    color: #2a7f72;
}

.mirabel-config__close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.mirabel-config__close:hover {
    color: #c00;
}

.mirabel-config__body {
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mirabel-config__techniques {
    flex: 2;
    min-width: 200px;

}

.mirabel-config__upload {
    flex: 1;
    min-width: 200px;
}

.mirabel-config__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

/* ── Technique radio choices ── */

.mirabel-config__tech-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mirabel-tech-choice {
    cursor: pointer;
    display: block;
    flex:1;
    margin-bottom: 0 !important;
}

.mirabel-tech-choice__label {
    text-align: center;
}

.mirabel-tech-choice input[type="radio"],
.mirabel-tech-choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mirabel-tech-choice__inner {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 6px 12px;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.mirabel-tech-choice:hover .mirabel-tech-choice__inner {
    border-color: #2a7f72;
}

.mirabel-tech-choice input:checked + .mirabel-tech-choice__inner {
    border-color: #2a7f72;
    background: #f0f9f7;
    color: #2a7f72;
}

.mirabel-tech-choice__img {

    object-fit: contain;
}

/* ── File dropzone ── */

.mirabel-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 12px;
}

.mirabel-dropzone:hover {
    border-color: #2a7f72;
    background: #f0f9f7;
}



.estimated-total-box{
    display: block !important;
    width: 100%;
  }


.product-quantity {
flex-direction: column;
}

.mirabel-dropzone--drag {
    border-color: #2a7f72;
    background: #e0f5f0;
    box-shadow: inset 0 0 0 2px rgba(42, 127, 114, 0.15);
}

.mirabel-dropzone--has-file {
    border-style: solid;
    border-color: #2a7f72;
    background: #f0f9f7;
}

.mirabel-dropzone__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mirabel-dropzone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
}

.mirabel-dropzone__text {
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.mirabel-dropzone__formats {
    font-size: 10px;
    color: #aaa;
}

.mirabel-dropzone__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    width: 100%;
}

.mirabel-dropzone__thumb {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #d6ece8;
}

.mirabel-dropzone__file-icon {
    color: #2a7f72;
}

.mirabel-dropzone__filename {
    font-size: 11px;
    font-weight: 600;
    color: #2a7f72;
    word-break: break-all;
    text-align: center;
    line-height: 1.3;
}

.mirabel-dropzone__remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #c00;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.mirabel-dropzone__remove:hover {
    background: #900;
}

/* ── Choose file button (logged user) ── */

.mirabel-file-zone {
    position: relative;
}

.mirabel-choose-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 2px solid #2a7f72;
    border-radius: 8px;
    background: #fff;
    color: #2a7f72;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.mirabel-choose-btn:hover {
    background: #2a7f72;
    color: #fff;
}

.mirabel-file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border: 2px solid #2a7f72;
    border-radius: 8px;
    background: #f0f9f7;
    position: relative;
}

/* ── Signup hint ── */

.mirabel-signup-hint {
    margin: 8px 0 4px;
    padding: 10px 14px;
    background: #fff8e6;
    border: 1px solid #f0d58c;
    border-radius: 6px;
    font-size: 12px;
    color: #7a6520;
    line-height: 1.5;
}

.mirabel-signup-hint a {
    color: #2a7f72;
    font-weight: 700;
    text-decoration: underline;
}

/* ── Programme broderie / vectorisation notice ── */

.mirabel-programme-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 4px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0faf7 0%, #e8f6f1 100%);
    border: 1px solid #b8e0d4;
    border-radius: 8px;
    font-size: 12.5px;
    color: #2d5f50;
    line-height: 1.6;
    animation: mirabelNoticeIn .25s ease;
}

.mirabel-programme-notice__icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #2a7f72;
}

.mirabel-programme-notice__content > strong:first-child {
    display: block;
    font-size: 13px;
    color: #1a4d42;
    margin-bottom: 4px;
}

.mirabel-programme-notice__content em {
    display: inline-block;
    margin-top: 6px;
    font-style: normal;
    font-weight: 600;
    color: #1a6b5a;
}

@keyframes mirabelNoticeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Modal ── */

.mirabel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mirabel-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mirabelModalIn 0.2s ease;
}

@keyframes mirabelModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mirabel-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.mirabel-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.mirabel-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.mirabel-modal__close:hover {
    color: #333;
}

.mirabel-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 150px;
}

.mirabel-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mirabel-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #aaa;
    text-align: center;
}

.mirabel-modal__empty p {
    font-size: 14px;
    margin: 0;
}

/* ── Media card in modal ── */

.mirabel-media-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    position: relative;
    background: #fff;
}

.mirabel-media-card:hover {
    border-color: #2a7f72;
    box-shadow: 0 2px 10px rgba(42, 127, 114, 0.15);
}

.mirabel-media-card__thumb {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 8px;
}

.mirabel-media-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 8px;
    color: #2a7f72;
}

.mirabel-media-card__name {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
    word-break: break-all;
    max-height: 2.6em;
    overflow: hidden;
}

.mirabel-media-card__delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #c00;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mirabel-media-card:hover .mirabel-media-card__delete {
    display: flex;
}

.mirabel-media-card__delete:hover {
    background: #900;
}

/* ── Upload counter ── */

.mirabel-upload-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.mirabel-upload-counter__hint {
    font-size: 11px;
    font-weight: 400;
    color: #7a6520;
    font-style: italic;
}

/* ── Modal footer / dropzone ── */

.mirabel-modal__footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
}

.mirabel-modal__dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 16px;
}

.mirabel-modal__dropzone:hover {
    border-color: #2a7f72;
    background: #f0f9f7;
}

.mirabel-modal__dropzone--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #ddd;
    background: #f0f0f0;
}

.mirabel-modal__dropzone--drag {
    border-color: #2a7f72;
    background: #e0f5f0;
    box-shadow: inset 0 0 0 2px rgba(42, 127, 114, 0.15);
}

.mirabel-modal__dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #999;
}

.mirabel-modal__dropzone-text {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.mirabel-modal__dropzone-formats {
    font-size: 11px;
    color: #aaa;
}

.mirabel-modal__dropzone-progress {
    font-size: 13px;
    font-weight: 600;
    color: #2a7f72;
    animation: mirabelPulse 1s infinite;
}

@keyframes mirabelPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mirabel-required {
    color: #c00;
    font-weight: 700;
    font-size: 14px;
}

/* ── Logo complexity pills (modal + preview) ── */

.mirabel-media-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mirabel-complexity-pills {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.mirabel-cpill {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.mirabel-cpill:hover {
    border-color: #2a7f72;
    color: #2a7f72;
    background: #f0f9f7;
}

.mirabel-cpill--active {
    background: #2a7f72;
    color: #fff;
    border-color: #2a7f72;
}

.mirabel-cpill--active:hover {
    background: #237068;
    color: #fff;
    border-color: #237068;
}

.mirabel-preview-complexity {
    width: 100%;
    margin-top: 8px;
}

.mirabel-preview-complexity .mirabel-complexity-pills {
    justify-content: center;
}

.mirabel-preview-complexity .mirabel-cpill {
    padding: 5px 14px;
    font-size: 11px;
}

.mirabel-complexity-info {
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: #999;
    margin-left: 4px;
    vertical-align: middle;
}

.mirabel-complexity-info:hover {
    color: #2a7f72;
}

.mirabel-complexity-tooltip {
    font-size: 12px;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0;
}

.mirabel-complexity-tooltip strong {
    color: #2a7f72;
    font-size: 12px;
}

.mct-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mct-item img {
    width: 140px;
  }
  .mirabel-config__tech-options img {
    width: 100%;
  }
  
  .mct-item {
    flex-direction: column;
  }
  
  .mirabel-complexity-tooltip {
    display: flex;
    gap:15px;
  }
.mct-item__img {
    width: 140px;
   
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}

.mct-item__text {
    flex: 1;
    min-width: 0;
}

.tippy-box[data-theme~='mirabel-complexity'] {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #444;
}

.tippy-box[data-theme~='mirabel-complexity'] .tippy-content {
    padding: 14px 16px;
}

.tippy-box[data-theme~='mirabel-complexity'] .tippy-arrow {
    color: #fff;
}

.tippy-box[data-theme~='mirabel-complexity'] .tippy-arrow::before {
    border-top-color: #fff;
}

.tippy-box[data-theme~='mirabel-complexity'] .tippy-arrow::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-color: transparent;
    border-style: solid;
}

.tippy-box[data-theme~='mirabel-complexity'][data-placement^='top'] .tippy-arrow::after {
    bottom: -8px;
    left: -1px;
    border-width: 8px 8px 0;
    border-top-color: #ddd;
}

/* ── Validation error ── */

.mirabel-validation-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff0f0;
    border: 1px solid #e8b4b4;
    border-radius: 8px;
    color: #c00;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    animation: mirabelShake 0.4s ease;
}

@keyframes mirabelShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.mirabel-config__techniques--error {
    padding: 8px;
    border-radius: 6px;
    border: 2px solid #e8b4b4;
    background: #fff8f8;
}

.mirabel-config__techniques--error .mirabel-config__label {
    color: #c00;
}

/* ── Responsive ── */

@media (max-width: 576px) {
    .mirabel-options {
        gap: 8px;
    }
    .mirabel-option {
        width: calc(33.333% - 6px);
        min-width: 85px;
    }
    .mirabel-option__inner {
        padding: 10px 5px 8px;
    }
    .mirabel-option__image {
        width: 50px;
        height: 50px;
    }
    .mirabel-option__label {
        font-size: 10px;
    }
    .mirabel-config__body {
        flex-direction: column;
    }
    .mirabel-modal {
        max-width: 100%;
        max-height: 90vh;
    }
    .mirabel-modal__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .mirabel-modal__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ── Cart customization display ── */

.mirabel-cart-customization {
    margin: 10px 0 5px;
    padding: 8px 15px;
    background: #f8faf9;
    border-top: 1px solid #eee;
}

.mirabel-cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #2a7f72;
    text-decoration: none;
    cursor: pointer;
}

.mirabel-cart-toggle:hover {
    color: #1d5c52;
    text-decoration: none;
}

.mirabel-cart-toggle__arrow {
    transition: transform 0.2s;
}

.mirabel-cart-toggle--open .mirabel-cart-toggle__arrow {
    transform: rotate(180deg);
}

.mirabel-cart-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 8px;
}

.mirabel-cart-details--open {
    max-height: 500px;
    padding: 8px 0 4px 8px;
}

.mirabel-cart-config-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2a7f72;
    margin-top: 8px;
    margin-bottom: 2px;
    padding-top: 8px;
    border-top: 1px dashed #d6ece8;
}

.mirabel-cart-config-label:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mirabel-cart-detail-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mirabel-cart-detail-row:last-child {
    border-bottom: none;
}

.mirabel-cart-detail__placement {
    font-weight: 700;
    color: #333;
}

.mirabel-cart-detail__sep {
    color: #ccc;
}

.mirabel-cart-detail__technique {
    color: #2a7f72;
    font-weight: 600;
}

.mirabel-cart-detail__complexity {
    color: #7a6520;
    font-weight: 600;
    font-style: italic;
}

.mirabel-cart-detail__media {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.mirabel-cart-detail__thumb {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #eee;
}

/* ── Order confirmation customization ── */

.mirabel-order-customization {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mirabel-order-customization__title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.mirabel-order-product {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.mirabel-order-product:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mirabel-order-product__details {
    margin-top: 6px;
    padding-left: 12px;
}

/* ── Customization inline display (cart, checkout, order) ── */

.mc-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.mc-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: #f5faf9;
    border: 1px solid #d6ece8;
    border-radius: 8px;
    font-size: 12px;
    min-width: 140px;
    max-width: 220px;
}

.mc-item__placement {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #2a7f72;
    font-size: 13px;
}

.mc-item__placement svg {
    flex-shrink: 0;
    color: #2a7f72;
}

.mc-item__technique {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 11px;
    font-weight: 600;
}

.mc-item__technique svg {
    flex-shrink: 0;
    color: #888;
}

.mc-item__complexity {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7a6520;
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
}

.mc-item__complexity svg {
    flex-shrink: 0;
    color: #a88a30;
}

.mc-item__file {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.mc-item__thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #d6ece8;
    background: #fff;
}

.mc-item__file-icon {
    color: #2a7f72;
    flex-shrink: 0;
}

.mc-item__filename {
    font-size: 10px;
    color: #777;
    word-break: break-all;
    line-height: 1.2;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-perso-price {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-top: 4px;
    padding: 8px 12px;
    background: #f0f9f7;
    border: 1px solid #d6ece8;
    border-radius: 8px;
    font-size: 12px;
    color: #2a7f72;
    font-weight: 600;
}

.mc-perso-price svg {
    flex-shrink: 0;
    color: #2a7f72;
}

.mc-perso-price strong {
    color: #1d5c52;
}

/* ── Cart personalization summary (checkout/cart subtotals) ── */

.mirabel-cart-perso-summary {
    margin: 10px 0 6px;
    padding: 12px 14px;
    background: #f0f9f7;
    border: 1px solid #d6ece8;
    border-radius: 8px;
    font-size: 12px;
}

.mcps-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #2a7f72;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #2a7f72;
}

.mcps-title svg {
    flex-shrink: 0;
    color: #2a7f72;
}

.mcps-title--toggle {
    justify-content: space-between;
}

.mcps-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mcps-total-inline {
    font-weight: 600;
    color: #2a7f72;
    margin-left: auto;
    margin-right: 6px;
    white-space: nowrap;
}

.mcps-chevron {
    flex-shrink: 0;
    transition: transform .25s ease;
    color: #2a7f72;
}

.mcps-title--toggle[aria-expanded="true"] .mcps-chevron {
    transform: rotate(180deg);
}

.mcps-group {
    padding: 6px 0 2px;
    border-bottom: 1px solid #d6ece8;
}

.mcps-group:last-child {
    border-bottom: none;
}

.mcps-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    margin-bottom: 2px;
}

.mcps-group-header .mcps-perso {
    font-weight: 700;
    color: #2a7f72;
    font-size: 11.5px;
}

.mcps-group-header .mcps-media {
    display: inline-flex;
    gap: 3px;
}

.mcps-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 3px 0 3px 10px;
    border-bottom: 1px solid #e0eeec;
}

.mcps-row:last-of-type {
    border-bottom: none;
}

.mcps-detail {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mcps-product {
    font-weight: 700;
    color: #333;
    font-size: 11px;
}

.mcps-combination {
    font-weight: 600;
    color: #666;
}

.mcps-perso {
    font-weight: 600;
    color: #555;
    font-size: 11px;
}

.mcps-media {
    font-weight: 400;
    color: #888;
    font-style: italic;
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.mcps-media-thumb {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #ddd;
    vertical-align: middle;
    background: #fff;
}

.mcps-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-align: right;
    font-size: 11px;

    justify-content: end;
}

.mcps-unit {
    font-weight: 700;
    color: #2a7f72;
}

.mcps-discount {
    display: inline-block;
    padding: 1px 6px;
    background: #2a7f72;
    color: #fff;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}

.mcps-qty {
    color: #888;
    font-size: 10px;
}

.mcps-line-total {
    font-weight: 700;
    color: #333;
}

.mcps-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 2px solid #2a7f72;
}

.mcps-total-label {
    font-weight: 700;
    color: #2a7f72;
    font-size: 12px;
}

.mcps-total-value {
    font-weight: 800;
    color: #222;
    font-size: 14px;
}

@media (max-width: 768px) {
    .mcps-row {
        flex-direction: column;
        gap: 3px;
    }
    .mcps-price {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .mc-inline {
        flex-direction: column;
    }
    .mc-item {
        max-width: 100%;
    }
}

/* ── Cart Delivery Speed Line ── */

.mirabel-cart-delivery-speed {
    margin-top: 8px;
    padding: 10px 14px;
    background: #fff8ed;
    border: 1px solid #f0d9a8;
    border-radius: 8px;
}

.mcds-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mcds-label {
    font-size: 12px;
    color: #555;
}

.mcds-pct {
    font-weight: 600;
    color: #b87a00;
}

.mcds-value {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.mcds-value--up { color: #c0392b; }
.mcds-value--down { color: #27ae60; }

@media (max-width: 768px) {
    .mcds-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
}

/* ── Price breakdown ── */

.mirabel-price-breakdown {
    margin: 14px 0;
    padding: 14px 18px;
    background: #f0f9f7;
    border: 2px solid #2a7f72;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.mpb-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2a7f72;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2a7f72;
}

.mpb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 12px;
}

.mpb-row + .mpb-row {
    border-top: 1px solid #d6ece8;
}

.mpb-label {
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

/* ── Delivery speed selector ── */

.mirabel-delivery-speed {
    margin: 12px 0;
    position: relative;
}

.mirabel-delivery-speed--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mirabel-delivery-speed--disabled .mds-options {
    pointer-events: none;
    user-select: none;
    filter: grayscale(100%);
}

.mds-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2a7f72;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2a7f72;
}

.mds-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mds-option {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 2px dashed #c5c5c5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.mds-option:hover {
    border-color: #2a7f72;
    box-shadow: 0 2px 8px rgba(42, 127, 114, 0.15);
}

.mds-option--active {
    border-style: solid;
    border-color: #2a7f72;
    background: #f0f9f7;
    box-shadow: 0 2px 10px rgba(42, 127, 114, 0.2);
}

.mds-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mds-img {
    display: block;

    height: 40px!important;
    object-fit: contain;
    margin: 0 auto 4px;
}

.mds-img--placeholder {
    visibility: hidden;
}

.mds-pct {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.mds-pct--up {
    background: #e67e22;
    color: #fff;
}

.mds-pct--down {
    background: #2a7f72;
    color: #fff;
}

.mds-pct--placeholder {
    visibility: hidden;
}

.mds-label {
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.mds-option--active .mds-label {
    color: #2a7f72;
}

.mds-date {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

.mds-option--active .mds-date {
    color: #2a7f72;
}

.mds-option--warn {
    border-color: #e67e22;
}

.mds-option--warn:hover {
    border-color: #d35400;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
}

.mds-warning-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e67e22;
    color: #fff;
    line-height: 1;
    cursor: help;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mds-notice {
    font-size: 0.65rem;
    font-style: italic;
    color: #6a7a78;
    margin-top: 6px;
}

@media (max-width: 576px) {
    .mds-options {
        flex-direction: column;
    }
    .mds-option {
        flex-direction: row;
        justify-content: space-between;
        min-width: 100%;
    }
}

/* ── Delivery line in breakdown ── */

.mpb-delivery {
    background: #fef9f0;
    border-radius: 6px;
    padding: 6px 10px !important;
    margin: 4px 0;
}

.mcps-delivery-section {
    margin: 10px 0 6px;
    padding-top: 8px;
    border-top: 1px solid #d6ece8;
}

.mcps-delivery-section .mds-title {
    font-size: 11px;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.mcps-delivery-section .mds-options {
    gap: 6px;
}

.mcps-delivery-section .mds-option {
    min-width: 0;
    padding: 8px 6px;
}

.mcps-delivery-section .mds-label {
    font-size: 11px;
}

.mcps-delivery-section .mds-pct {
    font-size: 9px;
    padding: 1px 6px;
}

.mcps-delivery {
    background: #fef9f0;
    border-radius: 6px;
    padding: 6px 10px !important;
    margin: 4px 0;
}

.mpb-media {
    font-weight: 400;
    color: #888;
    font-size: 11px;
}

.mpb-value {
    white-space: nowrap;
    font-weight: 700;
    color: #2a7f72;
    font-size: 13px;
}

.mpb-discount-wrap {
    display: inline-block;
    cursor: help;
}

.mpb-discount,
.mcps-discount {
    display: inline-block;
    padding: 2px 8px;
    background: #2a7f72;
    color: #fff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
    cursor: help;
}

.mcps-multi-discount-wrap {
    display: inline-block;
    cursor: help;
}

.mpb-multi-discount,
.mcps-multi-discount {
    display: inline-block;
    padding: 2px 8px;
    background: #e67e22;
    color: #fff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
    cursor: help;
}

.mcps-multi-discount-tooltip {
    font-size: 12px;
    color: #444;
    line-height: 1.2;
}

.mcps-multi-discount-tooltip strong {
    color: #e67e22;
}

.mpb-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-size: 9px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    margin-left: 2px;
    vertical-align: middle;
}

.mpb-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2a7f72;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

.mpb-info-btn .mpb-info-icon {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    margin-left: 0;
}

.mpb-tooltip {
    font-size: 11px;
    color: #333;
    line-height: 1.1;
}

.tippy-box[data-theme~='mpb'] {
    background: #fff;
    border: 1px solid #d6ece8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #333;
}

.tippy-box[data-theme~='mpb'] .tippy-content {
    padding: 5px 7px;
}

.tippy-box[data-theme~='mpb'] .tippy-arrow {
    color: #fff;
}

.tippy-box[data-theme~='mpb'] .tippy-arrow::before {
    border-top-color: #fff;
}

.tippy-box[data-theme~='mpb'] .tippy-arrow::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-color: transparent;
    border-style: solid;
}

.tippy-box[data-theme~='mpb'][data-placement^='top'] .tippy-arrow::after {
    bottom: -8px;
    left: -1px;
    border-width: 8px 8px 0;
    border-top-color: #d6ece8;
}

.mpb-tooltip__title {
    font-weight: 700;
    font-size: 11px;
    color: #2a7f72;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    line-height: 1.1;
}

.mpb-tooltip__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 11px;
    line-height: 1.05;
}

.mpb-tooltip__table th {
    text-align: left;
    font-weight: 600;
    color: #888;
    padding: 0 3px 1px;
    border-bottom: 1px solid #eee;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1.1;
}

.mpb-tooltip__table td {
    padding: 0 3px;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.05;
}

.mpb-tooltip__table tr:last-child td {
    border-bottom: none;
}

.mpb-tooltip__active td,
.mpb-tooltip__check td {
    background: #f0f9f7;
    font-weight: 700;
    color: #2a7f72;
}

.mpb-qty {
    color: #888;
    font-weight: 400;
    font-size: 11px;
}

.mpb-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #2a7f72 !important;
}

.mpb-total .mpb-label {
    color: #2a7f72;
    font-weight: 700;
    font-size: 13px;
}

.mpb-total .mpb-value {
    color: #2a7f72;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 576px) {
    .mpb-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* Programme broderie - badge on media card */
.mirabel-media-card__programme-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    background: rgba(34, 139, 94, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.mirabel-media-card__programme-badge svg {
    flex-shrink: 0;
}

/* Programme broderie / vectorisation - lock product controls in cart */
.cart-item .js-cart-line-product-quantity[data-product-id="67"],
.cart-item .js-cart-line-product-quantity[data-product-id="2889"] {
    pointer-events: none;
    opacity: 0.7;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
}
.cart-item .js-cart-line-product-quantity[data-product-id="67"]::-webkit-inner-spin-button,
.cart-item .js-cart-line-product-quantity[data-product-id="67"]::-webkit-outer-spin-button,
.cart-item .js-cart-line-product-quantity[data-product-id="2889"]::-webkit-inner-spin-button,
.cart-item .js-cart-line-product-quantity[data-product-id="2889"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-item .remove-from-cart[data-id-product="67"],
.cart-item .remove-from-cart[data-id-product="2889"] {
    display: none !important;
}


.product-line-grid-right.product-line-actions.col-md-5.col-xs-12 {
    position: absolute;
    right: 0px;
    top: 0px;
}

.product-line-grid-body.col-md-4.col-xs-8 {
    width: 75%;
}

.product-line-grid {
    position: relative;
}

.js-cart-line-product-quantity[data-product-id="67"] ~ span.input-group-btn-vertical {
    display:none;
}


.js-cart-line-product-quantity[data-product-id="2889"] ~ span.input-group-btn-vertical {
    display:none;
}






.elementor-cart__product-remove [data-id-product="67"] {
    display:none!important;
}

.elementor-cart__product-remove [data-id-product="2889"] {
    display:none!important;
}


.elementor-cart__product-remove:has([data-id-product="67"])::before {
    content:none!important;
}

.elementor-cart__product-remove:has([data-id-product="2889"])::before {
    content:none!important;
}

/* ── Widget Total Estimé (hook displayMirabelEstimatedTotal) ── */

.mirabel-estimated-total-widget {
    display: none;
    padding: 8px 14px;
    background: #1f4950;
    border-radius: 0;
    border-top: 0;
    position: relative;
}

.mirabel-estimated-total-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.mirabel-estimated-total-widget.metw--visible {
    display: block;
}

.metw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 0;
}

.metw-row + .metw-row {
    border-top: 0;
}

.metw-label {
    font-weight: 500;
    color: white;
    font-size: 21px;
    line-height: 1.2;
}

.metw-context {
    font-weight: 400;
    color: #888;
    font-size: 12px;
    transition: color 0.2s ease;
}

.metw--with-perso .metw-context {
    color: #2a7f72;
    font-weight: 600;
}

.metw-value {
    font-weight: 800;
    color: #ffffff;
    font-size: 18px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.metw-row--total .metw-label {
    font-weight: 700;
    font-size: 19px;
}

.metw-row--total .metw-value {
    font-size: 22px;
    color: #ffffff;
}

.metw-product-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 62%;
}

.metw-right {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.metw-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.metw-price-prefix {
    font-size: 14px;
    font-weight: 600;
    color: #dbe9e7;
    white-space: nowrap;
}

.metw-add-to-cart {
    border-radius: 999px;
    border: 0;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #5fa0ab;
    color: #fff;
    line-height: 1;
}

.metw-add-to-cart:hover {
    background: #72b2bc;
}

.metw--with-perso .metw-row--total .metw-value {
    color: #2a7f72;
}



.mirabel-cart-delivery-speed {
    margin-bottom: 15px;
  }
.metw-notice {
    text-align: right;
    font-size: 11px;
    line-height: 1.2;
    font-style: italic;
    color: rgba(232, 243, 241, 0.85);
    margin-top: 2px;
}

@media (max-width: 576px) {
    .mirabel-estimated-total-widget {
        padding: 8px 10px;
    }
    .metw-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .metw-right {
        width: 100%;
        justify-content: space-between;
    }

    .metw-price-prefix {
        font-size: 12px;
    }

    .metw-label {
        font-size: 14px;
    }

    .metw-row--total .metw-value {
        font-size: 22px;
    }
}



.tiny-info {
    color: #888;
    font-size: 0.6rem;
  }
/* ── Overlay plein écran ajout panier ── */
.mirabel-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.mirabel-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mirabel-cart-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.mirabel-cart-overlay__spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: mirabel-spin .7s linear infinite;
}
.mirabel-cart-overlay__text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
@keyframes mirabel-spin {
    to { transform: rotate(360deg); }
}




.mirabel-tech-choice__label {
    position: absolute;
    background-color: white;
    width: calc(100% - 10px);
    bottom: 5px;
    left: 5px;
  
    border-radius: 5px;
    padding: 5px;
    font-size: 95%;
  }
  .mirabel-tech-choice__inner {
    position: relative;
    bottom: 0px;
    padding: 0px;
  }

  #product .boxItem .mirabel-config__tech-options img {
    height:100px;
  }

  .mirabel-config__techniques label.mirabel-tech-choice input:checked ~ span.mirabel-tech-choice__inner {
    border: solid 2px var(--color-secondary);
  }

  .metw-add-to-cart::before {
    display: none;
}

.mirabel-estimated-total-widget::before {
    display: none;
}


.showBottomBar {
    position: relative;
}

.showBottomBar::before {
    content: "";
    position: absolute;
    width: 100%;
    top: 5px;
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(255, 255, 255, 1);
    pointer-events: none;
    z-index: 1;
}

/* ── Type toggle (Logo / Écriture) ── */

.mirabel-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #2a7f72;
}

.mirabel-type-btn {
    flex: 1;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    background: #fff;
    color: #2a7f72;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mirabel-type-btn:not(:last-child) {
    border-right: 1px solid #2a7f72;
}

.mirabel-type-btn:hover {
    background: #f0f9f7;
}

.mirabel-type-btn--active {
    background: #2a7f72;
    color: #fff;
}

.mirabel-type-btn--active:hover {
    background: #237068;
}

/* ── Font picker (custom dropdown) ── */

.mirabel-font-picker {
    position: relative;
    margin-bottom: 10px;
}

.mirabel-font-picker__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s ease;
    text-align: left;
}

.mirabel-font-picker__trigger::after {
    content: '\25BC';
    font-size: 10px;
    color: #999;
    margin-left: 8px;
}

.mirabel-font-picker__trigger:hover {
    border-color: #2a7f72;
}

.mirabel-font-picker__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #2a7f72;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: -2px;
}

.mirabel-font-picker__option {
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.1s ease;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.mirabel-font-picker__option:last-child {
    border-bottom: none;
}

.mirabel-font-picker__option:hover {
    background: #f0f9f7;
    color: #2a7f72;
}

/* ── Ecriture texts block (outside config body) ── */

.mirabel-ecriture-texts {
    padding: 12px 14px;
    border-top: 1px dashed #d6ece8;
    background: #f8fcfb;
}

.mirabel-ecriture-texts .mirabel-config__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

/* ── Text entries header ── */

.mirabel-text-header {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0eeec;
}

.mirabel-text-th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #888;
}

.mirabel-text-th--size { width: 80px; flex-shrink: 0; }
.mirabel-text-th--qty { width: 56px; flex-shrink: 0; text-align: center; }
.mirabel-text-th--text { flex: 1; min-width: 0; }
.mirabel-text-th--action { width: 28px; flex-shrink: 0; }

/* ── Text entries (structured form) ── */

.mirabel-text-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.mirabel-text-entry {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mirabel-text-size {
    width: 80px;
    padding: 7px 8px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background: #fff;
    flex-shrink: 0;
}

.mirabel-text-qty {
    width: 50px;
    padding: 7px 6px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    flex-shrink: 0;
    -moz-appearance: textfield;
}

.mirabel-text-qty::-webkit-inner-spin-button,
.mirabel-text-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mirabel-text-value {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.15s ease;
}

.mirabel-text-value:focus {
    border-color: #2a7f72;
    outline: none;
}

.mirabel-text-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.mirabel-text-remove:hover {
    background: #c00;
    color: #fff;
}

.mirabel-text-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    color: #777;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.mirabel-text-add:hover {
    border-color: #2a7f72;
    color: #2a7f72;
    background: #f0f9f7;
}

.mirabel-text-size:focus,
.mirabel-text-qty:focus {
    border-color: #2a7f72;
    outline: none;
}

/* ── Textile subtotal (checkout) ── */

.mirabel-textile-subtotal {
    padding: 10px 14px;
    background: #f8fcfb;
    border: 1px solid #d6ece8;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 12px;
}

.mts-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.mts-label {
    color: #555;
    font-weight: 600;
}

.mts-value {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.mts-row--programme .mts-label {
    color: #888;
    font-weight: 500;
    font-style: italic;
}

.mts-row--programme .mts-value {
    color: #888;
    font-weight: 600;
}

.mts-row--total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1.5px solid #2a7f72;
}

.mts-row--total .mts-label {
    font-weight: 700;
    color: #2a7f72;
    font-size: 12px;
}

.mts-row--total .mts-value {
    font-weight: 800;
    color: #2a7f72;
    font-size: 13px;
}

/* ── Ecriture display in cart/order ── */




.mc-item__font {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2a7f72;
    font-size: 11px;
    font-weight: 600;
}

.mc-item__font svg {
    flex-shrink: 0;
    color: #2a7f72;
}

.mc-item__texts {
    margin-top: 4px;
    padding: 6px 8px;
    background: #f8faf9;
    border-radius: 6px;
    border: 1px solid #e8f0ed;
}

.mc-item__text-line {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

.mc-item__text-line strong {
    color: #2a7f72;
}

@media (max-width: 576px) {
    .mirabel-text-entry {
        flex-wrap: wrap;
    }
    .mirabel-text-size {
        width: calc(40% - 3px);
    }
    .mirabel-text-qty {
        width: calc(20% - 3px);
    }
    .mirabel-text-value {
        width: 100%;
    }
    .mirabel-font-picker__dropdown {
        max-height: 200px;
    }
}