/**
 * ONVO Direct: Checkout Styles
 */

#onvo-card-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-top: 10px;
}

.onvo-field {
    margin-bottom: 12px;
}

.onvo-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.onvo-field label .required {
    color: #e2401c;
    font-weight: 700;
}

.onvo-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.onvo-field input:focus {
    border-color: #2B4FD4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(43,79,212,0.15);
}

.onvo-field input::placeholder {
    color: #aaa;
}

.onvo-row {
    display: flex;
    gap: 12px;
}

.onvo-row .onvo-field {
    flex: 1;
}

.onvo-secure {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0;
    text-align: center;
}

/* Error highlighting */
.onvo-field.onvo-field--error input {
    border-color: #e2401c;
    box-shadow: 0 0 0 1px #e2401c;
}

/* Responsive */
@media (max-width: 480px) {
    .onvo-row {
        flex-direction: column;
        gap: 0;
    }
}


/* ------------------------------------------------------------------
 * v1.0.15.2: decline dialog
 * ------------------------------------------------------------------ */
.onvo-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 21, 88, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: onvo-dialog-fade 160ms ease-out;
}
body.onvo-dialog-open { overflow: hidden; }
.onvo-dialog {
    background: #fff;
    color: #080a11;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 28px 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
    animation: onvo-dialog-rise 180ms ease-out;
}
.onvo-dialog-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fde2e2;
    color: #b42318;
    font-weight: 700;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    margin-bottom: 14px;
}
.onvo-dialog-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: #091558;
}
.onvo-dialog-body {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #333;
}
.onvo-dialog-steps {
    margin: 0 0 18px 18px;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}
.onvo-dialog-steps li { margin-bottom: 6px; }
.onvo-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.onvo-dialog-btn {
    width: 100%;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
}
.onvo-dialog-btn-primary {
    background: #091558;
    color: #fff;
}
.onvo-dialog-btn-primary:hover { background: #0d1e7a; }
.onvo-dialog-btn-secondary {
    background: #fff;
    color: #091558;
    border-color: #091558;
}
.onvo-dialog-btn-secondary:hover { background: #f3fbf9; }
.onvo-dialog-btn-link {
    background: transparent;
    color: #666;
    font-weight: 500;
    padding: 8px;
}
.onvo-dialog-btn-link:hover { color: #091558; text-decoration: underline; }
.onvo-dialog-btn:focus-visible { outline: 3px solid #c8eee6; outline-offset: 2px; }
@keyframes onvo-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes onvo-dialog-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .onvo-dialog-overlay, .onvo-dialog { animation: none; }
}
@media (max-width: 480px) {
    .onvo-dialog { padding: 22px 18px 18px; border-radius: 12px; }
    .onvo-dialog-title { font-size: 17px; }
}


/* ------------------------------------------------------------------
 * v1.0.16.0: Apple Pay button inside the gateway block. The button itself
 * is painted by Apple's SDK (<apple-pay-button>); the plugin only lays out
 * its container, the separator and the hidden/disabled states.
 * ------------------------------------------------------------------ */
.onvo-apple-pay {
    margin: 10px 0 4px;
}
.onvo-apple-pay--hidden {
    display: none;
}
.onvo-apple-pay apple-pay-button {
    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 44px;
    --apple-pay-button-border-radius: 6px;
    --apple-pay-button-padding: 0;
    --apple-pay-button-box-sizing: border-box;
    display: block;
    width: 100%;
    cursor: pointer;
}
.onvo-apple-pay--busy apple-pay-button {
    opacity: 0.5;
    pointer-events: none;
}
.onvo-apple-pay__separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 2px;
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.onvo-apple-pay__separator::before,
.onvo-apple-pay__separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}
.onvo-status {
    margin-bottom: 12px;
}
