:root {
    /* Variables Base - Defaults que pueden ser sobreescritos por Elementor */
    --orniloty-focus-color: #000000;
    --orniloty-accent-color: #000000;
    --orniloty-checkbox-bg: #FFFFFF;
}

.orniloty-form-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    /* Heredar del tema */
}

.orniloty-form {
    display: flex;
    /* Flexbox Container */
    flex-wrap: wrap;
    /* Permitir wrap */
    gap: 0;
    margin: 0 -10px;
    /* Negative margin para compensar padding de cols */
}

/* PRO LAYOUT SYSTEM */
.orniloty-field-group {
    padding: 0 10px;
    /* Gutter */
    box-sizing: border-box;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.orniloty-col-100 {
    width: 100%;
}

.orniloty-col-66 {
    width: 66.666%;
}

.orniloty-col-50 {
    width: 50%;
}

.orniloty-col-33 {
    width: 33.333%;
}

.orniloty-col-25 {
    width: 25%;
}

/* Responsive Mobile Fix */
@media (max-width: 767px) {

    .orniloty-col-100,
    .orniloty-col-66,
    .orniloty-col-50,
    .orniloty-col-33,
    .orniloty-col-25 {
        width: 100%;
    }
}

.orniloty-field-group label {
    font-weight: 500;
    font-size: 14px;
    color: inherit;
    /* Chameleon */
}

/* Inputs, Selects, Textareas - CHAMELEON MODE */
.orniloty-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    /* Default sutil */
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    /* Base blanca, pero overridable */
    box-sizing: border-box;
    font-family: inherit;
    color: inherit;
}

/* 4. Force Focus Style */
.orniloty-input:focus,
.orniloty-input:focus-visible {
    outline: none;
    border-color: var(--orniloty-focus-color) !important;
    box-shadow: 0 0 0 1px var(--orniloty-focus-color) !important;
}

.orniloty-input::placeholder {
    color: inherit;
    opacity: 0.6;
    font-family: inherit;
}

/* Multi-Coupon Feature */
.orniloty-coupon-wrapper {
    /* Special wrapper if needed */
}

/* Flexbox Row to prevent X button overlap */
.orniloty-coupon-row {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Layout safety gap */
}

.orniloty-coupon-row input {
    flex: 1;
    /* Take remaining space */
}

.orniloty-remove-coupon {
    position: static;
    /* No absolute positioning */
    flex-shrink: 0;
    /* Don't shrink */
    background: none;
    border: none;
    color: #ef4444;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    transition: all 0.2s;
}

/* Add Coupon Button Defaults */
.orniloty-add-coupon-btn {
    background: none;
    border: 1px dashed #ccc;
    color: #666;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    margin: 0;
}

.orniloty-add-coupon-btn:hover {
    border-color: #666;
    background-color: #f5f5f5;
    color: #333;
}

.orniloty-add-coupon-btn span {
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}


/* Checkboxes */
.orniloty-legal {
    margin-top: 5px;
    gap: 10px;
}

.orniloty-checkbox-label {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    align-items: flex-start;
    color: inherit;
}

.orniloty-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--orniloty-accent-color);
    border: 1px solid #D1D5DB;
    /* Default */
    border-radius: 4px;
}

/* Submit Button */
.orniloty-submit-row {
    margin-top: 10px;
}

.orniloty-button {
    width: 100%;
    padding: 14px 20px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.orniloty-button:hover {
    opacity: 0.9;
}

.orniloty-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Messages */
.orniloty-error-message {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* Success */
.orniloty-success-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.orniloty-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #10B981;
}

.orniloty-success-message h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.orniloty-success-message p {
    margin: 0;
    color: #6B7280;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.orniloty-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Utilities */
.orniloty-hidden-coupon {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: -1;
}

/* Ocultar el Badge de reCAPTCHA por estética */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}