/* =========================================================
   EGA Amount Selector – Frontendstile
   ========================================================= */

.ega-amount-selector {
    margin: 0 0 22px;
    padding: 18px 20px;
    background: #fafaf8;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ---- Dropdown ---- */
.ega-amount-select-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 14px;
    color: #333;
}

.ega-amount-select {
    width: 100%;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.ega-amount-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

/* ---- Custom Amount ---- */
.ega-custom-amount-wrap {
    margin-top: 16px;
}

.ega-custom-amount-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.ega-custom-amount-input {
    display: block;
    width: 100%;
    max-width: 280px;
    padding: 10px 14px;
    border: 2px solid #0073aa;
    border-radius: 4px;
    font-size: 17px;
    color: #222;
    background: #fff;
}

.ega-custom-amount-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Remove browser arrows on number input */
.ega-custom-amount-input::-webkit-outer-spin-button,
.ega-custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ega-custom-amount-input[type=number] {
    -moz-appearance: textfield;
}

.ega-amount-hint {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

/* ---- Betrag-Anzeige ---- */
.ega-amount-display {
    margin-top: 16px;
    padding: 13px 20px;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 5px;
    max-width: 360px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    letter-spacing: 0.3px;
}

#ega-amount-display-value {
    font-size: 19px;
}

/* ---- Widmung ---- */
.ega-widmung-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8e4de;
}

.ega-widmung-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 14px;
    color: #333;
}

.ega-widmung-optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

.ega-widmung-textarea {
    display: block;
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ega-widmung-textarea:focus {
    outline: none;
    border-color: #b8963e;
    box-shadow: 0 0 0 2px rgba(184, 150, 62, 0.18);
}

.ega-widmung-counter {
    display: block;
    margin-top: 4px;
    color: #bbb;
    font-size: 11px;
    text-align: right;
    max-width: 480px;
    transition: color 0.15s ease;
}

/* ---- Fehlermeldung ---- */
.ega-amount-error {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fde8e8;
    border-left: 4px solid #cc0000;
    color: #a00;
    font-size: 14px;
    border-radius: 2px;
    list-style: none;
}
