/**
 * Scoped styles for Orderfy analytics cookie consent banner.
 * No Preflight / no global element resets — only .ofy-cc-* selectors
 * (plus body.ofy-cc-banner-open for temporary bottom reserve while visible).
 */

.ofy-cc-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 100;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (min-width: 640px) {
    .ofy-cc-banner {
        padding: 1rem 1.5rem;
    }
}

/* Keep banner compact on short viewports (e.g. 1024x700 payment QR). */
@media (max-height: 760px) {
    .ofy-cc-banner {
        padding: 0.4rem 0.75rem;
    }

    .ofy-cc-panel {
        padding: 0.55rem 0.75rem;
        gap: 0.5rem;
        border-radius: 0.75rem;
    }

    .ofy-cc-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .ofy-cc-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
        min-width: 5.5rem;
    }
}

.ofy-cc-banner.ofy-cc-is-hidden {
    display: none !important;
}

.ofy-cc-panel {
    margin: 0 auto;
    max-width: 48rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.75rem 0.875rem;
    box-shadow: 0 10px 40px -16px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .ofy-cc-panel {
        border-radius: 1rem;
        padding: 1rem 1.25rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.ofy-cc-text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

@media (min-width: 640px) {
    .ofy-cc-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

.ofy-cc-link {
    font-weight: 600;
    color: #0058f8;
    text-decoration: underline;
}

.ofy-cc-link:hover {
    color: #0046c7;
}

.ofy-cc-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.ofy-cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 0.5rem;
    border: 2px solid #0058f8;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #0058f8;
    cursor: pointer;
    font-family: inherit;
}

@media (min-width: 640px) {
    .ofy-cc-btn {
        flex: 0 0 auto;
        min-width: 6.5rem;
        padding: 0.55rem 1rem;
        font-size: 0.875rem;
    }
}

.ofy-cc-btn:hover {
    background: #e8f0ff;
}

.ofy-cc-btn:focus {
    outline: 2px solid #0058f8;
    outline-offset: 2px;
}

.ofy-cc-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Temporary bottom reserve so fixed banner does not cover hero CTAs or PIX QR. */
body.ofy-cc-banner-open {
    padding-bottom: var(--ofy-cc-reserve, 7.5rem);
}

@media (max-height: 760px) {
    body.ofy-cc-banner-open {
        padding-bottom: var(--ofy-cc-reserve, 5.5rem);
    }
}

/* Manage-cookies control on pages without the marketing footer (e.g. /experiencia). */
.ofy-cc-manage {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.35);
    box-sizing: border-box;
}

.ofy-cc-manage:hover {
    color: #0058f8;
}
