/* ═══════════════════════════════════════════════
   Easewrap Custom Models Add On — Front-end styles
   Styled to match clean rounded dropdown UI
═══════════════════════════════════════════════ */

.ew-selector {
    margin: 0 0 24px;
    max-width: 100%;
}

/* ── Field wrapper ── */
.ew-field {
    margin-bottom: 16px;
}

/* ── Label ── */
.ew-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.ew-required {
    color: #e74c3c;
    margin-left: 2px;
    font-size: 14px;
}

/* ── Select dropdown — matches screenshot style ── */
.ew-select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #333;
    font-weight: 400;

    /* Custom arrow */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23999' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;

    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);

    /* Prevent text going under arrow */
    padding-right: 44px;
}

.ew-select:hover {
    border-color: #c0c0c0;
}

.ew-select:focus {
    outline: none;
    border-color: #a0a0a0;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.ew-select:disabled {
    background-color: #fafafa;
    color: #bbb;
    cursor: not-allowed;
    border-color: #ececec;
    box-shadow: none;
}

/* ── Loading indicator ── */
.ew-loading {
    display: inline-block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    padding-left: 4px;
    animation: ew-pulse 1s ease-in-out infinite;
}

@keyframes ew-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Validation message ── */
.ew-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.ew-msg-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #fad0cc;
}

.ew-msg-success {
    background: #f0faf4;
    color: #1a7a3c;
    border: 1px solid #b2dfbd;
}

/* ── No models notice ── */
.ew-notice {
    padding: 10px 14px;
    background: #fffbea;
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: 13px;
    color: #7a5c00;
    margin-bottom: 14px;
}

/* ── Shake on incomplete submit ── */
@keyframes ew-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}
.ew-shake { animation: ew-shake 0.3s ease; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .ew-select { padding: 12px 14px; padding-right: 40px; font-size: 14px; }
}

/* ── No-sides model: disabled state looks informational not broken ── */
#ew-sides:disabled {
    background-color: #f7f7f7;
    color: #888;
    border-color: #e8e8e8;
    cursor: default;
    opacity: 1; /* override browser dimming */
}