/* ═══════════════════════════════════════════
   ExpressOrder Module Styles
   Theme: Rose #e91e8c / Jaune #ffd600
   ═══════════════════════════════════════════ */

.expressorder-wrapper {
    background: #fff0f7;
    border: 1px solid #f8bbd9;
    border-top: 4px solid #e91e8c;
    border-radius: 6px;
    padding: 20px 24px 24px;
    margin: 24px 0;
    font-family: inherit;
    max-width: 560px;
}

/* ── Header ── */
.expressorder-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #f8bbd9;
    padding-bottom: 12px;
}

.eo-icon {
    font-size: 1.4rem;
}

.eo-title {
    display: inline;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e91e8c;
    margin: 0 0 0 6px;
    vertical-align: middle;
}

.eo-subtitle {
    font-size: 0.82rem;
    color: #ad1457;
    margin: 4px 0 0;
}

/* ── Alerts ── */
.eo-alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.eo-alert-success {
    background: #fff9c4;
    border: 1px solid #ffd600;
    color: #795900;
}

.eo-alert-error {
    background: #fce4ec;
    border: 1px solid #f48fb1;
    color: #880e4f;
}

/* ── Form groups ── */
.eo-form-group {
    margin-bottom: 13px;
}

.eo-form-row {
    display: flex;
    gap: 12px;
}

.eo-half {
    flex: 1;
    min-width: 0;
}

/* ── Labels ── */
.eo-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #880e4f;
    margin-bottom: 5px;
}

.eo-label-icon {
    font-size: 0.85rem;
}

.eo-required {
    color: #e91e8c;
    font-weight: 700;
}

/* ── Inputs ── */
.eo-input {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #f48fb1;
    border-radius: 4px;
    font-size: 0.88rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.eo-input:focus {
    outline: none;
    border-color: #e91e8c;
    box-shadow: 0 0 0 2px rgba(233, 30, 140, 0.15);
}

.eo-textarea {
    resize: vertical;
    min-height: 58px;
}

/* ── Submit button ── */
.eo-btn-submit {
    width: 100%;
    padding: 11px 20px;
    background: #ffd600;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(233, 30, 140, 0.15);
}

.eo-btn-submit:hover {
    background: #ffca00;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.25);
}

.eo-btn-submit:active {
    transform: scale(0.99);
}

.eo-btn-submit:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Privacy note ── */
.eo-privacy-note {
    font-size: 0.76rem;
    color: #ad1457;
    text-align: center;
    margin: 10px 0 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .expressorder-wrapper {
        padding: 14px 14px 18px;
    }

    .eo-form-row {
        flex-direction: column;
        gap: 0;
    }

    .eo-btn-submit {
        font-size: 0.9rem;
    }
}

/* ── Cart product list preview ── */
.eo-cart-products {
    background: #fff;
    border: 1px solid #f8bbd9;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 0.83rem;
}

.eo-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #fce4ec;
    color: #555;
}

.eo-cart-item:last-child {
    border-bottom: none;
}

.eo-cart-qty {
    background: #e91e8c;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.eo-cart-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Inline variant — page produit, sous le bouton commander ── */
.expressorder-wrapper.eo-inline {
    background: #fff8fc;
    border: 1px dashed #f48fb1;
    border-top: 3px solid #e91e8c;
    border-radius: 0 0 6px 6px;
    margin-top: 0;
    margin-bottom: 16px;
    max-width: 100%;
    padding: 14px 16px 16px;
}

.expressorder-wrapper.eo-inline .expressorder-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.expressorder-wrapper.eo-inline .eo-title {
    font-size: 1rem;
}

.expressorder-wrapper.eo-inline .eo-subtitle {
    font-size: 0.78rem;
    margin-top: 2px;
}

.expressorder-wrapper.eo-inline .eo-form-group {
    margin-bottom: 10px;
}

.expressorder-wrapper.eo-inline .eo-input {
    padding: 7px 10px;
    font-size: 0.85rem;
}

.expressorder-wrapper.eo-inline .eo-btn-submit {
    padding: 9px 16px;
    font-size: 0.9rem;
}

/* ── Product Designer integration ── */
.eo-designer-notice {
    padding: 9px 13px;
    border-radius: 4px;
    font-size: 0.83rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.eo-designer-pending {
    background: #fff9e6;
    border: 1px dashed #ffd600;
    color: #7a5800;
}

.eo-designer-ready {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.eo-btn-submit.eo-btn-disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* ── Selected combination display ── */
.eo-selected-combination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 7px 12px;
    margin-bottom: 12px;
    font-size: 0.83rem;
}

.eo-combination-label {
    color: #888;
    flex-shrink: 0;
}

.eo-combination-value {
    font-weight: 700;
    color: #f57f17;
    transition: color 0.3s;
}

.eo-combination-value.eo-flash {
    color: #e91e8c;
}

.eo-combination-badge {
    display: inline-block;
    background: #fff8e1;
    color: #f57f17;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}
