.marketing-consent {
    position: fixed;
    inset-inline: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 400;
    width: min(620px, calc(100% - 40px));
    max-height: calc(100vh - 40px);
    max-height: calc(100svh - 40px);
    margin: 0 auto;
    padding: 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    border: 1px solid #d9ccb0;
    border-top: 3px solid #ccb681;
    border-radius: 8px;
    background: #faf9f6;
    color: #1c2d57;
    box-shadow: 0 15px 65px #111d3940;
    text-align: start;
    font-family: 'Tajawal', Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}
.marketing-consent[hidden], .marketing-consent [hidden] { display: none !important; }
.marketing-consent-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.marketing-consent h2 { color: #1c2d57; margin: 0 0 10px; font: 700 22px / 1.5 'Tajawal', Tahoma, Arial, sans-serif; }
.marketing-consent p { margin: 0 0 10px; color: #45506a; font: inherit; }
.marketing-consent .marketing-consent-status { font-weight: 700; color: #1c2d57; }
.marketing-consent-status:empty { display: none; }
.marketing-consent a { color: #254d72; text-decoration: underline; text-underline-offset: 4px; }
.marketing-consent-details { border-top: 1px solid #dfdfd9; padding-top: 10px; }
.marketing-consent-details summary { padding: 3px 0; cursor: pointer; font-weight: 700; }
.marketing-consent-details p { margin-top: 10px; font-size: 13px; }
.marketing-consent-details a { font-size: 13px; }
.marketing-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0 14px; }
.marketing-consent-actions button {
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid #1c2d57;
    border-radius: 4px;
    background: #1c2d57;
    color: #fff;
    cursor: pointer;
    font: 700 14px / 1.5 'Tajawal', Tahoma, Arial, sans-serif;
}
.marketing-consent-actions button:hover { background: #2c426e; }
.marketing-consent-close { flex-shrink: 0; padding: 8px 0; border: 0; background: transparent; color: #45506a; cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.marketing-consent-privacy { font-size: 13px; }
.marketing-settings { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.marketing-consent :is(button, a, summary):focus-visible, .marketing-settings:focus-visible { outline: 3px solid #8b692f; outline-offset: 4px; }
@media (max-width: 620px) {
    .marketing-consent { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 20px; }
    .marketing-consent h2 { font-size: 20px; }
    .marketing-consent-actions { gap: 8px; }
    .marketing-consent-actions button { padding: 10px 8px; }
    .marketing-consent-heading { flex-wrap: wrap; gap: 0 16px; }
}
@media print { .marketing-consent, .marketing-settings { display: none !important; } }
