.amr-return-form {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.amr-return-form h3 {
    margin-top: 0;
}

.amr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.amr-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.amr-field label span {
    color: #b32d2e;
}

.amr-field input,
.amr-field textarea {
    width: 100%;
    box-sizing: border-box;
}

.amr-order-box {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-left: 4px solid currentColor;
    background: #f7f7f7;
}

.amr-alert {
    width: 100%;
    max-width: 760px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    padding: 12px 14px;
    border-radius: 4px;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

.amr-alert *,
.amr-alert-success,
.amr-alert-success * {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

.amr-alert-success {
    background: #ecf8ef;
    border: 1px solid #bfe6c8;
}

.amr-alert-error {
    background: #fff2f2;
    border: 1px solid #f0b8b8;
}

.amr-return-button-wrap {
    margin-top: 20px;
}

.amr-return-info {
    margin-top: 20px;
    padding: 12px 14px;
    background: #f7f7f7;
    border-left: 4px solid currentColor;
}

@media (max-width: 640px) {
    .amr-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.amr-field input[readonly] {
    background: #f6f7f7;
    cursor: not-allowed;
}

.amr-return-form .amr-field input,
.amr-return-form .amr-field textarea,
.amr-return-form .amr-field select {
    background-color: #ffffff !important;
    color: inherit;
}

.amr-return-form .amr-field textarea#amr_reason {
    background-color: #ffffff !important;
}

.amr-return-form .amr-field input[readonly] {
    background-color: #f6f7f7 !important;
}

/* Override tema: su pagine con sfondo/scuro alcuni temi impostano testi e placeholder bianchi. */
.amr-return-form,
.amr-return-form h1,
.amr-return-form h2,
.amr-return-form h3,
.amr-return-form h4,
.amr-return-form p,
.amr-return-form .amr-field,
.amr-return-form .amr-field label {
    color: #111111 !important;
}

.amr-return-form .amr-field input,
.amr-return-form .amr-field textarea,
.amr-return-form .amr-field select {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    border: 1px solid #dddddd !important;
}

.amr-return-form .amr-field input::placeholder,
.amr-return-form .amr-field textarea::placeholder {
    color: #777777 !important;
    -webkit-text-fill-color: #777777 !important;
    opacity: 1 !important;
}

.amr-return-form .amr-field input::-webkit-input-placeholder,
.amr-return-form .amr-field textarea::-webkit-input-placeholder {
    color: #777777 !important;
    -webkit-text-fill-color: #777777 !important;
    opacity: 1 !important;
}

.amr-return-form .amr-field input::-moz-placeholder,
.amr-return-form .amr-field textarea::-moz-placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}

.amr-return-form .amr-field input:-ms-input-placeholder,
.amr-return-form .amr-field textarea:-ms-input-placeholder {
    color: #777777 !important;
}

.amr-return-form .amr-field input[readonly] {
    background: #f6f7f7 !important;
    background-color: #f6f7f7 !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}
