/* ============================================================
   BONNIEBYTE PC - EMBEDS / 3RD PARTY WIDGET STYLES
   (embeds.css)
   MailerLite • reCAPTCHA • Iubenda Privacy/Cookie Embeds
   Unified to match brand colour system.
   ============================================================ */

/* ============================================================
   MAILERLITE FORM
   ============================================================ */

.ml-form-embedContainer {
    max-width: 420px;
    margin: 0 auto;
    background: transparent !important;
    padding: 0;
}

.ml-form-embedContainer .ml-form-embedWrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ml-form-embedBody .ml-form-fieldRow input {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    border: 2px solid var(--bb-blue) !important;
    background: var(--bb-surface) !important;
    color: var(--bb-text) !important;
}

.ml-form-embedBody .ml-form-embedFieldRow input::placeholder {
    color: var(--bb-text-muted) !important;
}

.ml-form-embedSubmit button {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    background: var(--bb-blue) !important;
    color: #fff !important;
    transition: 0.25s ease !important;
}

.ml-form-embedSubmit button:hover {
    background: #88bbff !important;
}

/* reCAPTCHA scaling (kept subtle) */
.ml-form-recaptcha {
    margin: 10px 0;
    transform: scale(0.9);
    transform-origin: 0 0;
}

/* ============================================================
   IUBENDA EMBEDDED POLICY BOXES
   ============================================================ */

.iubenda-embed {
    background: var(--bb-panel) !important;
    border-radius: 10px !important;
    padding: 24px !important;
    border: 1px solid var(--bb-border) !important;
    color: var(--bb-text) !important;
    box-shadow: var(--bb-shadow) !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

/* Links inside embed */
.iubenda-embed a {
    color: var(--bb-blue) !important;
    text-decoration: none !important;
}

.iubenda-embed a:hover {
    color: #8ec4ff !important;
    text-decoration: underline !important;
}

/* Remove any fallback banners */
.iubenda-embed-banner {
    display: none !important;
}

/* ============================================================
   IUBENDA COOKIE CONSENT UI
   ============================================================ */

.iubenda-consent-ui,
.iucs-consent-ui,
.iubenda-cs-container {
    background: rgba(13,13,13,0.95) !important;
    border-radius: 12px !important;
    border: 1px solid var(--bb-border) !important;
    backdrop-filter: blur(12px) !important;
    padding: 20px !important;
    box-shadow: var(--bb-shadow) !important;
    color: var(--bb-text) !important;
    font-family: Arial, sans-serif !important;
    max-width: 600px !important;
}

/* Cookie banner text */
.iubenda-consent-content,
.iucs-consent-content {
    color: var(--bb-text) !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}

/* PRIMARY BUTTONS */
.iubenda-consent-btn,
.iucs-consent-btn,
.iubenda-cs-btn {
    background: var(--bb-blue) !important;
    border: 2px solid var(--bb-blue) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-right: 10px !important;
    transition: 0.25s ease !important;
}

.iubenda-consent-btn:hover,
.iucs-consent-btn:hover,
.iubenda-cs-btn:hover {
    background: #88bbff !important;
    border-color: #88bbff !important;
}

/* SECONDARY BUTTONS */
.iubenda-consent-btn.iubenda-consent-btn-secondary,
.iucs-consent-btn.iucs-consent-btn-secondary {
    background: transparent !important;
    color: var(--bb-text) !important;
    border: 2px solid var(--bb-text) !important;
}

.iubenda-consent-btn.iubenda-consent-btn-secondary:hover,
.iucs-consent-btn.iucs-consent-btn-secondary:hover {
    background: var(--bb-text) !important;
    color: #000 !important;
}

/* Close button */
.iubenda-consent-close,
.iucs-consent-close {
    color: var(--bb-text-muted) !important;
    transition: 0.25s;
}

.iubenda-consent-close:hover,
.iucs-consent-close:hover {
    color: #fff !important;
}

/* Cookie banner position */
.iubenda-cs-bottom,
.iubenda-cs-rationale {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 600px !important;
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */

@media (max-width: 768px) {
    .ml-form-embedContainer {
        padding: 0 10px;
    }

    .iubenda-consent-ui,
    .iucs-consent-ui {
        width: 95% !important;
        bottom: 10px !important;
    }

    .iubenda-consent-btn,
    .iucs-consent-btn {
        font-size: 14px !important;
        padding: 8px 14px !important;
    }
}
