/* ============================================================
 * SEP Cliche - Frontend Stylesheet
 * ============================================================ */

.sep-cliche-wrapper {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.sep-cliche-header h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.sep-cliche-intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.sep-cliche-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sep-cliche-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sep-cliche-option:hover {
    border-color: #93c5fd;
}

.sep-cliche-option input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: #1ba6df;
}

.sep-cliche-option-content {
    flex: 1;
    display: block;
}

.sep-cliche-option-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.sep-cliche-option-price {
    color: #1ba6df;
    font-weight: 700;
}

.sep-cliche-once-tag {
    display: inline-block;
    padding: 2px 7px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
}

.sep-cliche-option-desc {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
}

.sep-cliche-option-desc a {
    color: #1ba6df;
    text-decoration: underline;
}

/* ===== Logo detail section ===== */
.sep-cliche-logo-detail {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e5e7eb;
}

.sep-cliche-dims {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.sep-cliche-dims label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #374151;
    font-weight: 600;
}

.sep-cliche-dims input[type="number"] {
    width: 90px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.sep-cliche-dims input[type="number"].sep-cliche-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.sep-cliche-x {
    align-self: flex-end;
    padding-bottom: 0.45rem;
    color: #9ca3af;
    font-weight: 700;
}

.sep-cliche-max-label {
    align-self: flex-end;
    padding-bottom: 0.5rem;
    margin-left: 0.5rem;
    color: #9ca3af;
    font-size: 0.8rem;
    font-style: italic;
}

/* ===== Oversize warning ===== */
.sep-cliche-oversize {
    margin: 0.85rem 0;
    padding: 0.85rem 1rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
}

.sep-cliche-error-msg {
    margin: 0 0 0.5rem;
    color: #991b1b;
    font-size: 0.875rem;
}

.sep-cliche-mailto-btn {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    background: #1ba6df;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.sep-cliche-mailto-btn:hover {
    background: #1789ba;
}

/* ===== Upload section ===== */
.sep-cliche-upload {
    margin-top: 0.85rem;
}

.sep-cliche-upload-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.sep-cliche-upload-hint {
    margin-left: 0.4rem;
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.75rem;
}

.sep-cliche-upload input[type="file"] {
    display: block;
    margin-bottom: 0.4rem;
}

.sep-cliche-upload-status {
    font-size: 0.85rem;
    min-height: 1.4em;
}

.sep-cliche-upload-pending {
    color: #9ca3af;
    font-style: italic;
}

.sep-cliche-upload-ok {
    color: #047857;
    font-weight: 600;
}

.sep-cliche-upload-check {
    color: #10b981;
    font-weight: 900;
    margin-right: 0.3rem;
}

.sep-cliche-upload-success-label {
    color: #6b7280;
    font-weight: 500;
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

.sep-cliche-upload-error {
    color: #b91c1c;
    font-weight: 600;
}

.sep-cliche-upload-loading {
    color: #1ba6df;
    font-style: italic;
}

/* ===== Validation msg ===== */
.sep-cliche-validation-msg {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9rem;
}

/* ===== Cart display ===== */
.sep-cliche-cart-file {
    display: inline-block;
    padding: 2px 8px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== Mobile responsive ===== */
@media (max-width: 480px) {
    .sep-cliche-wrapper {
        padding: 1rem;
    }
    .sep-cliche-option {
        padding: 0.7rem 0.8rem;
    }
    .sep-cliche-dims {
        flex-direction: column;
        align-items: stretch;
    }
    .sep-cliche-dims input[type="number"] {
        width: 100%;
    }
    .sep-cliche-x {
        display: none;
    }
}

/* ===== ADMIN (variazione) ===== */
.sep-cliche-admin-options {
    margin: 1rem 0;
    padding: 0.85rem;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
}

.sep-cliche-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.sep-cliche-admin-grid label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.sep-cliche-admin-grid input[type="number"] {
    width: 100%;
    margin-top: 0.25rem;
}

.sep-cliche-admin-files {
    margin: 16px 0;
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
}

.sep-cliche-admin-files h3 {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e3a8a;
}

.sep-cliche-admin-files ul {
    list-style: none;
    padding: 0;
}

.sep-cliche-admin-files li {
    margin: 4px 0;
}
