.elementor-widget-pizza_refund_form_widget {
    width: 100%;
    max-width: 680px !important;
}

h1.entry-title {
    text-align: center;
}

.refund-form-title {
    text-align: center;
}

.refund-form__group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.refund-form__group {
    margin-bottom: 24px;
}

.refund-form__group input {
    font-size: 14px !important;
    background-color: #ffffff;
    border-color: #c2c2c2;
}

.refund-form__actions button {
    width: 100%;
    font-size: 16px;
    color: #ffffff;
    outline: none;
    border-radius: 50px;
    border: none !important;
    box-sizing: border-box;
    background-color: #303030;
}

.refund-form__actions button:hover,
.refund-form__actions button:focus {
    border-radius: 50px;
    background-color: #f34f2d;
}

.refund-form__actions button.is-loading,
.refund-form__actions button[disabled] {
    pointer-events: none;
    background-color: #4a4a4a !important;
}

#order-data {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
}

.order-item {
    padding: 20px;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    flex-grow: 1;
    flex-shrink: 0;
}

.order-item p:nth-child(1) {
    font-weight: 600;
}

.order-item-return-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.refund-reason {
    margin-bottom: 10px;
}

.refund-type-money label {
    display: block;
    margin-bottom: 8px;
}

.pzd-refund-form-item-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #000;
}

.pzd-refund-form-item-qty-order {
    display: inline-block;
    border-radius: 30px;
    padding: 5px 15px;
    background-color: #f4f3ea;
    font-size: 14px;
    color: #636363;
    font-weight: 500;
    margin: 0;
    margin-right: auto;
}

select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 6px 32px 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    min-width: 180px;
    cursor: pointer;
    transition: border 0.2s;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%23333' height='12' viewBox='0 0 20 20' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.456 4.484-4.456L16 9l-6 6-6-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

select:focus {
    border-color: #0073aa;
    outline: none;
}

.refund-file-upload {
    margin-top: 15px;
}

.file-label {
    display: inline-block;
    background: #f7f7f7;
    border: 1px dashed #aaa;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition:
            background 0.2s,
            border 0.2s;
}
.file-label:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 8px;
}

.file-card {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    padding: 4px;
    background: #fff;
}

.file-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-video,
.file-other {
    color: #555;
}

.file-upload-description {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

.pzd-refund-form-qty {
    padding: 4px 10px !important;
}

.pzd-refund-form-qty-error {
    display: none;
    font-size: 14px;
    color:#d93025;
    margin-top: 5px;
}

.pzd-refund-form-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 5px;
}

.pzd-refund-form-item-price {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.refund-message {
    border: 1px solid #c2c2c2;
    border-radius: 4px;
}

.refund-message::placeholder,
.refund-message:focus::placeholder {
    color: #aaaaaa !important;
}

/* Refund error modal */
.refund-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.refund-modal.is-open {
    display: flex;
}

.refund-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.refund-modal__dialog {
    position: relative;
    width: min(520px, 92vw);
    background: #fff;
    border-radius: 12px;
    padding: 24px 24px 28px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.refund-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 24px !important;
    line-height: 1;
    cursor: pointer;
    padding: 0 !important;
    color: #333 !important;
    background: transparent;
    border: none !important;
}

.refund-modal__close:hover {
    background: transparent !important;
}

.refund-modal__title {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
}

.refund-modal__text {
    margin: 0 auto 20px auto;
    font-size: 16px;
    text-align: center;
    max-width: 350px;
}

.refund-modal__button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: none !important;
    padding: 10px 35px !important;
    border-radius: 50px !important;
    color: #f4f3ea !important;
    background-color: #303030 !important;
    margin: 0 auto;
}

.refund-modal__button:hover {
    background-color: #f34f2d !important;
}

#form-field-email {
    height: auto !important;
}

@media (max-width: 820px) {
    .refund-form-title {
        font-size: 28px;
    }

    .pzd-refund-form-item-title {
        font-size: 16px;
    }

    .refund-form {
        max-width: 480px;
        margin: 0 auto;
    }

    .order-item {
        flex-shrink: 1;
    }

    .refund-form__group {
        margin-bottom: 15px;
    }

    #order-data {
        margin-top: 20px;
    }
}

@media (max-width: 520px) {
    .refund-form-title {
        font-size: 20px;
    }

    .refund-form {
        max-width: 360px;
        font-size: 14px !important;
    }

    #form-field-email,
    #form-field-order_id,
    #form-field-email::placeholder,
    #form-field-order_id::placeholder,
    .order-item input,
    .pzd-refund-form-item-price,
    select,
    .refund-modal__text,
    .refund-form__actions button {
        font-size: 14px;
    }

    .order-item {
        padding: 15px;
    }

    #order-data {
        gap: 12px;
        margin-top: 20px;
    }

    .refund-form__group {
        margin-bottom: 18px;
    }
}

@media (max-width: 360px) {
    .refund-form {
        max-width: 300px;
        font-size: 13px !important;
    }

    .refund-form__actions button,
    .file-label,
    .order-item input {
        font-size: 13px;
    }

    .refund-form__group {
        margin-bottom: 14px;
    }

    .order-item {
        padding: 10px;
    }

    select,
    .refund-modal__text {
        font-size: 13px;
    }

    .refund-form__group {
        margin-bottom: 10px;
    }
}
