#easycommerce-checkout-editor-form {
    margin: 30px 0;
    width: 100%;
}

#easycommerce-checkout-editor-form .checkout-editor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    min-height: 300px;
    max-width: 750px;
    border-radius: 6px;
    margin: 0 auto;
}

.easycommerce-checkout-editor-fields-container h3 {
    font-size: 20px;
    padding: 10px 0;
    font-weight: 600;
}

.easycommerce-checkout-editor-fields-container .easycommerce-accordion-item {
    cursor: pointer;
    border: 1px solid #f5ebeb;
    margin-bottom: 9px;
    padding: 16px 10px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
.easycommerce-checkout-editor-fields-container .easycommerce-accordion-item:hover {
    border: 1px solid var(--color-ec-secondary) !important;
}

.easycommerce-checkout-editor-fields-container .easycommerce-accordion-item .easycommerce-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.easycommerce-accordion-header h4 {
    font-size: 15px;
    font-weight: 500;
}
.easycommerce-accordion-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.easycommerce-accordion-content p label {
    display: block;
    color: var(--color-ec-body);
    font-family: "Inter", system-ui;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 4px;
    font-size: 16px;
}

.easycommerce-accordion-content {
    display: none;
    padding: 10px;
    background: #fff;
}

.easycommerce-accordion-item.active .easycommerce-accordion-content {
    display: block;
}

.easycommerce-field-row {
    margin-bottom: 10px;
}
.easycommerce-accordion-content input,
.easycommerce-accordion-content select {
    border: 1px solid #f5ebeb;
    outline: none;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.easycommerce-field-row input:hover,
.easycommerce-field-row select:hover,
.easycommerce-field-row input:focus,
.easycommerce-field-row select:focus {
    box-shadow: none !important;
    border: 1px solid var(--color-ec-secondary) !important;
}
.easycommerce-field-row input[type="checkbox"] {
    width: 15px;
}
.easycommerce-field-row button.ec-custom-remove-field-btn {
    border: 1px solid #f5ebeb;
    outline: none;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
    background: #f72b2b;
    color: #ffffff;
    transition: all 0.4s ease-in-out;
}
.easycommerce-field-row button.ec-custom-remove-field-btn:hover {
    border: 1px solid #f72b2b;
    color: #f72b2b;
    background-color: #ffffff;
}
.ec-checkout-editor-field-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.ec-checkout-editor-field-options .ec-row-required,
.ec-checkout-editor-field-options .ec-row-enabled {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.option-input:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Button to Add Option */
#add-option-btn {
    background-color: #007BFF;
    color: white;
    padding: 8px 15px;
    border: none;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

#add-option-btn:hover {
    background-color: #0056b3;
}
.ec-checkout-editor-fields-save {
    width: 100%;
    padding: 10px;
    margin: 10px;
}
.ec-checkout-editor-fields-save #save-fields-btn {
    width: auto;
    border: 1px solid #f5ebeb;
    outline: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
    background: #0056b3;
    color: #ffffff;
    transition: all 0.4s ease-in-out;
}

.ec-checkout-editor-fields-save #save-fields-btn:hover {
    border: 1px solid #0056b3;
    color: #0056b3;
    background-color: #ffffff;
}
.ec-checkout-editor-fields-add {
    text-align: center;
    padding: 10px;
    margin: 10px;
}

.ec-checkout-editor-fields-add #ec-add-custom-field-btn {
    width: auto;
    border: 1px solid #f5ebeb;
    outline: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
    background: #0056b3;
    color: #ffffff;
    transition: all 0.4s ease-in-out;
}

.ec-checkout-editor-fields-add #ec-add-custom-field-btn:hover {
    border: 1px solid #ffffff;
    color: #ffffff;
    background-color: #0365cc;
}

/* Modal Overlay */
/* #ec-custom-field-modal {
    width: 300px;
    margin: 0 auto;
} */

#ec-custom-field-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ec-modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.ec-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.ec-modal-content label {
    display: block;
    font-weight: 500;
    padding: 10px 0;
    color: #444;
}

.ec-modal-content input[type="text"],
.ec-modal-content input[type="email"],
.ec-modal-content input[type="number"],
.ec-modal-content input[type="date"],
.ec-modal-content input[type="time"],
.ec-modal-content select,
.ec-modal-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ec-modal-content input:hover,
.ec-modal-content select:hover,
.ec-modal-content textarea:hover {
    border: 1px solid #0365cc;
    box-shadow: none;
    outline: none;
}

.ec-modal-content input:focus,
.ec-modal-content select:focus,
.ec-modal-content textarea:focus {
    border: 1px solid #0365cc;
    box-shadow: none;
    outline: none;
}

.ec-modal-content input[type="checkbox"],
.ec-modal-content input[type="radio"] {
    margin: 0px !important;
    transform: scale(1.1);
}
.ec-checkbox-field {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 7px;
}
#ec-custom-field-enabled[type="checkbox"]:checked,
#ec-custom-field-required[type="checkbox"]:checked {
    border-color: var(--color-ec-primary) !important;
    background-color: var(--color-ec-primary) !important;
}
#ec-custom-field-enabled::before,
#ec-custom-field-required::before {
    content: url(../img/checked.png);
    margin: unset;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 1px;
    left: -3px;
}

#select-field-options textarea {
    height: 80px;
    /* resize: vertical; */
}

#ec-radio-field-options #ec-radio-options-wrapper .ec-radio-option {
    width: 100%;
    display: flex;
    gap: 10px;
}
.ec-radio-option .remove-radio-option {
    font-size: 30px;
}

#ec-save-custom-field,
#ec-close-custom-field {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-right: 10px;
}

.ec-save-custom-field {
    background-color: #3b82f6;
    color: #fff;
}

.ec-close-custom-field {
    background-color: #e5e7eb;
    color: #333;
}

.ec-save-custom-field:hover {
    background-color: #2563eb;
}

.ec-close-custom-field:hover {
    background-color: #d1d5db;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ec-drag-handle img {
    object-fit: contain;
    width: 20px;
    height: 20px;
}
.ec-accordion-toggle img {
    transition: transform 0.3s ease;
    object-fit: contain;
    width: 16px;
    transform: rotate(-90deg);
    height: 16px;
}

.easycommerce-accordion-item.active .ec-accordion-toggle img {
    transform: rotate(0deg);
    object-fit: contain;
    width: 16px;
    height: 16px;
}

.easycommerce-field-wrapper-radio {
    margin-top: 10px;
}

.easycommerce-field-wrapper-radio h5 {
    display: block;
    color: var(--color-ec-body);
    font-family: "Inter", system-ui;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 4px;
    font-size: 16px;
}
input[type="radio"].easycommerce-input-checkoutbox {
    padding: 8px !important;
    width: 13px !important;
    height: 13px !important;
}
input[type="radio"].easycommerce-input-checkoutbox::before {
    width: 15px !important;
    height: 17px !important;
    top: -5px !important;
    left: 3px !important;
}

.easycommerce-checkout_field-wrapper label {
    display: inline-block;
    padding-left: 10px;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .ec-modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .ec-modal-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .ec-modal-content label {
        font-size: 14px;
    }

    .ec-modal-content input[type="text"],
    .ec-modal-content input[type="email"],
    .ec-modal-content input[type="number"],
    .ec-modal-content input[type="date"],
    .ec-modal-content input[type="time"],
    .ec-modal-content select,
    .ec-modal-content textarea {
        font-size: 13px;
        padding: 8px;
    }

    .ec-save-custom-field,
    .ec-close-custom-field {
        padding: 8px 16px;
        font-size: 13px;
        margin-right: 5px;
    }

    .ec-checkbox-field {
        gap: 5px;
    }

    #select-field-options textarea {
        height: 60px;
    }
}