/* First-party consent panel; native dialog top layer avoids contact-widget overlap. */
.orn-consent-revisit{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));z-index:1100;max-width:calc(100vw - 150px);padding:9px 13px;border:1px solid #786a60;border-radius:5px;background:#fffdf9;color:#332a25;font:12px/1.4 Arial,sans-serif;cursor:pointer;min-height:44px}
.orn-consent-dialog{position:fixed;inset:0;width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 40px);margin:auto;padding:28px;border:1px solid #b8a99a;border-radius:10px;background:#fffdf9;color:#332a25;font:15px/1.6 Arial,sans-serif;text-align:left;overflow:auto;box-shadow:0 16px 60px #241b1640;z-index:2147483000;box-sizing:border-box}
.orn-consent-dialog::backdrop{background:#231c18a6}
.orn-consent-dialog:not([open]){display:none}
.orn-consent-dialog *{box-sizing:border-box}
.orn-consent-dialog h2{margin:0 45px 18px 0;font:normal 30px/1.2 Georgia,serif;color:#332a25}
.orn-consent-dialog p{margin:12px 0;font:inherit;letter-spacing:normal;text-transform:none}
.orn-consent-dialog button{font:inherit;letter-spacing:normal;text-transform:none;min-height:44px;padding:10px 14px;border:1px solid #8b7563;border-radius:5px;background:#fffdf9;color:#332a25;cursor:pointer;line-height:1.35}
.orn-consent-dialog .orn-consent-close{position:absolute;right:16px;top:13px;max-width:115px;font-size:11px;padding:6px 9px;min-height:32px}
.orn-consent-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.orn-consent-dialog .orn-consent-actions button.orn-consent-choice{flex:1 1 180px;background:#42372f!important;color:#fffdf9!important;border-color:#42372f!important;font-weight:600}
.orn-consent-dialog fieldset{margin:18px 0;padding:16px;border:1px solid #baab9c;border-radius:5px;min-width:0}
.orn-consent-dialog legend{padding:0 8px;font-weight:600}
.orn-consent-category{padding:12px 0;border-bottom:1px solid #e6ded6}
.orn-consent-category label{display:flex;gap:10px;align-items:center;font-weight:600;cursor:pointer;color:#332a25}
.orn-consent-category input{appearance:auto;width:21px;height:21px;flex:0 0 auto;accent-color:#42372f}
.orn-consent-category p{font-size:13px;margin:6px 0 0 31px;color:#5e5146}
.orn-consent-dialog #orn-consent-save{margin-top:16px}
.orn-consent-links{display:flex;flex-wrap:wrap;gap:10px 20px}
.orn-consent-dialog a{color:#6e302c;text-decoration:underline;text-underline-offset:3px;font:inherit}
.orn-consent-dialog #orn-consent-local,.orn-consent-dialog #orn-consent-status{font-size:12px;color:#5e5146}
.orn-consent-dialog :focus-visible,.orn-consent-revisit:focus-visible{outline:3px solid #8e3434;outline-offset:3px}
.orn-consent-dialog [hidden]{display:none!important}
@media(max-width:480px){.orn-consent-dialog{padding:22px 18px;max-height:calc(100dvh - 24px);font-size:14px}.orn-consent-dialog h2{font-size:27px;margin-right:100px}.orn-consent-actions .orn-consent-choice{flex-basis:100%}.orn-consent-actions button{flex:1 1 140px}.orn-consent-category p{margin-left:0}.orn-consent-revisit{font-size:11px;max-width:calc(100vw - 28px);bottom:max(80px,env(safe-area-inset-bottom));min-height:44px}}
@media(prefers-reduced-motion:reduce){.orn-consent-dialog,.orn-consent-revisit{scroll-behavior:auto}}

/* The current theme uses two-ID important color rules; scope this override to our two choice controls only. */
#orn-consent-dialog.orn-consent-dialog #orn-consent-accept.orn-consent-choice,#orn-consent-dialog.orn-consent-dialog #orn-consent-reject.orn-consent-choice{color:#fffdf9!important;background:#42372f!important;border-color:#42372f!important}

/* ORNATALIA native InMobi presentation. Consent text, controls and SDK remain provider-owned. */
html:not(#orn-consent-theme-override) body .qc-cmp2-container #qc-cmp2-ui {
  width:min(760px,calc(100vw - 48px))!important;
  max-width:calc(100vw - 48px)!important;
  max-height:calc(100vh - 64px)!important;
  max-height:calc(100dvh - 64px)!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  border:1px solid #d4e3e3!important;
  border-radius:18px!important;
  background:#fbfdfc!important;
  box-shadow:0 24px 90px #123b4933!important;
  color:#183d4a!important;
  font-family:OrnText,'DM Sans',Arial,sans-serif!important;
  font-size:14px!important;
  line-height:1.65!important;
  text-align:left!important;
  scrollbar-width:thin;
  scrollbar-color:#8cabad #f1f7f6;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(div,p,span,li,a,label,button){
  font-family:OrnText,'DM Sans',Arial,sans-serif!important;
  letter-spacing:normal!important;
  overflow-wrap:break-word;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(.qc-cmp2-summary-section,.qc-cmp2-consent-info){
  flex:none!important;padding:32px 36px 20px!important;background:#fbfdfc!important;
  color:#183d4a!important;font-size:14px!important;line-height:1.65!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(h1,h2,.span-heading){
  font-family:OrnLuxury,Cormorant,Georgia,serif!important;
  font-size:34px!important;font-weight:400!important;line-height:1.12!important;
  letter-spacing:-.025em!important;color:#183d4a!important;
  text-align:left!important;margin:0 40px 18px 0!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-publisher-logo-container{
  margin:0!important;padding:0!important;gap:0!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-publisher-logo-container>div:first-child{
  margin:0 0 14px!important;padding:0!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui figure{
  margin:0!important;text-align:left!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-close{
  top:14px!important;right:14px!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-close-icon{
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  border:1px solid #d4e3e3!important;border-radius:50%!important;background:transparent!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(.qc-cmp2-summary-buttons,.qc-cmp2-header-links){
  display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;
  width:100%!important;gap:10px!important;margin:22px 0 0!important;padding:0!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui button:is(#accept-btn,#disagree-btn,#more-options-btn,#accept-all-btn,#reject-all-btn,#save-and-exit),
html:not(#orn-consent-theme-override) body #qc-cmp2-ui label[for=save-and-exit]{
  box-sizing:border-box!important;flex:1 1 150px!important;min-width:0!important;
  min-height:48px!important;padding:13px 18px!important;margin:0!important;
  border:1px solid #183d4a!important;border-radius:7px!important;
  background:#183d4a!important;color:#fbfdfc!important;
  font:500 12px/1.4 OrnText,'DM Sans',Arial,sans-serif!important;
  text-align:center!important;text-decoration:none!important;
  white-space:normal!important;letter-spacing:.02em!important;
  cursor:pointer!important;box-shadow:none!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui button:is(#accept-btn,#disagree-btn,#more-options-btn,#accept-all-btn,#reject-all-btn,#save-and-exit) *{
  color:inherit!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui button:is(#accept-btn,#disagree-btn,#more-options-btn,#accept-all-btn,#reject-all-btn,#save-and-exit):hover,
html:not(#orn-consent-theme-override) body #qc-cmp2-ui label[for=save-and-exit]:hover{
  background:#245666!important;border-color:#245666!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-scrollable-section{
  flex:none!important;max-height:none!important;height:auto!important;
  overflow:visible!important;margin:0!important;padding:0 36px 24px!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-list-item{
  border-color:#dce8e8!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-list-item-header{
  min-height:56px!important;padding:15px 0!important;gap:16px!important;
  color:#183d4a!important;background:transparent!important;font-size:13px!important;
  line-height:1.5!important;text-transform:none!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-list-item-title{
  color:#183d4a!important;font-weight:500!important;line-height:1.5!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-list-item-status{
  flex-shrink:0!important;color:#486772!important;font-size:11px!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-footer{
  position:sticky!important;bottom:0!important;flex:none!important;
  padding:16px 36px!important;gap:12px!important;
  border-top:1px solid #dce8e8!important;background:#f1f7f6!important;
  box-shadow:none!important;z-index:2!important;flex-wrap:wrap!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-footer :is(a,label){
  color:#183d4a!important;font-size:11px!important;line-height:1.5!important;
}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(a,button,input,label[for]):focus-visible{
  outline:3px solid #287f91!important;outline-offset:3px!important;
}
html:not(#orn-consent-theme-override) body .orn-consent-revisit{
  border:1px solid #b8d1d4;border-radius:999px;background:#fbfdfcf5;
  color:#183d4a;font:500 11px/1.4 OrnText,'DM Sans',Arial,sans-serif;
  padding:10px 15px;box-shadow:0 3px 16px #183d4a0a;
}
@media(max-width:600px){
  html:not(#orn-consent-theme-override) body .qc-cmp2-container #qc-cmp2-ui{
    width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;
    max-height:calc(100vh - 24px)!important;
    max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    margin:0!important;border-radius:14px!important;font-size:13px!important;
  }
  html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(.qc-cmp2-summary-section,.qc-cmp2-consent-info){
    padding:26px 20px 18px!important;font-size:13px!important;line-height:1.6!important;
  }
  html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(h1,h2,.span-heading){
    font-size:29px!important;margin-right:40px!important;
  }
  html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-scrollable-section{
    padding:0 20px 18px!important;
  }
  html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(.qc-cmp2-summary-buttons,.qc-cmp2-header-links){
    gap:8px!important;margin-top:18px!important;
  }
  html:not(#orn-consent-theme-override) body #qc-cmp2-ui button:is(#accept-btn,#disagree-btn,#more-options-btn,#accept-all-btn,#reject-all-btn){
    flex-basis:100%!important;min-height:46px!important;
  }
  html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-footer{
    padding:12px 20px max(12px,env(safe-area-inset-bottom))!important;
  }
  html:not(#orn-consent-theme-override) body .orn-consent-revisit{
    max-width:calc(100vw - 28px);bottom:max(76px,env(safe-area-inset-bottom));
  }
}
/* Summary nests consent-info; apply spacing once and keep the native footer visible. */
html:not(#orn-consent-theme-override) body .qc-cmp2-container #qc-cmp2-ui{width:min(850px,calc(100vw - 48px))!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-section{overflow:visible!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-section .qc-cmp2-consent-info{padding:0!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-info{overflow:visible!important;max-height:none!important;height:auto!important;line-height:1.65!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-footer .qc-cmp2-summary-buttons{margin:0!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui button{text-transform:none!important;}
@media(max-width:600px){html:not(#orn-consent-theme-override) body .qc-cmp2-container #qc-cmp2-ui{width:calc(100vw - 24px)!important;}}

/* Native mobile flex columns wrap sideways; use a bounded grid for equal, visible choices. */
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-section{display:block!important;min-height:0!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-consent-info{min-height:0!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;height:auto!important;min-height:0!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-buttons button{height:auto!important;width:100%!important;flex:none!important;order:0!important;justify-content:center!important;align-items:center!important;}
@media(max-width:600px){html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-buttons{grid-template-columns:minmax(0,1fr)!important;}}

/* Contain background page overflow while the native modal is open. */
html:has(.qc-cmp2-container #qc-cmp2-ui),body:has(.qc-cmp2-container #qc-cmp2-ui){overflow-x:clip!important;}

/* SDK paragraph wrappers reserve bottom padding at every nesting level. Keep one clear text rhythm. */
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-info div{padding:0!important;margin:0!important;font-size:inherit!important;line-height:inherit!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-info>div>div{margin-top:10px!important;}

/* Compact card requested by Natalia in the coordinating chat: preserve lower-left placement. */
html body #qc-cmp2-main > .qc-cmp-cleanslate{align-items:flex-end!important;justify-content:flex-start!important;padding:16px!important;box-sizing:border-box!important;}
html:not(#orn-consent-theme-override) body .qc-cmp2-container #qc-cmp2-ui{width:440px!important;max-width:calc(100vw - 32px)!important;max-height:min(470px,calc(100vh - 32px))!important;max-height:min(470px,calc(100dvh - 32px))!important;margin:0!important;border-radius:12px!important;font-size:13px!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(.qc-cmp2-summary-section,.qc-cmp2-consent-info){padding:20px 22px 16px!important;font-size:13px!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(h1,h2,.span-heading){font-size:28px!important;margin-bottom:12px!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-info{max-height:170px!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-publisher-logo-container>div:not([class]):not([style]){max-height:112px!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-scrollable-section{max-height:146px!important;min-height:48px!important;overflow:auto!important;padding:0 22px 12px!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-footer{padding:12px 22px!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-header-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-header-links button{width:100%!important;}
@media(max-width:600px){
 html body #qc-cmp2-main > .qc-cmp-cleanslate{padding:10px!important;}
 html:not(#orn-consent-theme-override) body .qc-cmp2-container #qc-cmp2-ui{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:min(470px,calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))!important;}
 html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(.qc-cmp2-summary-section,.qc-cmp2-consent-info){padding:16px 18px 12px!important;}
 html:not(#orn-consent-theme-override) body #qc-cmp2-ui :is(h1,h2,.span-heading){font-size:27px!important;}
 html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-summary-info{max-height:140px!important;}
 html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-footer{padding:12px 18px!important;}
 html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-scrollable-section{padding:0 18px 12px!important;}
}

/* Explicit, visible close mark; the provider's accessible native button remains intact. */
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-close-icon{position:relative!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-close-icon::before,html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-close-icon::after{content:""!important;position:absolute!important;left:14px!important;top:21px!important;width:14px!important;height:1px!important;background:#183d4a!important;transform:rotate(45deg)!important;}
html:not(#orn-consent-theme-override) body #qc-cmp2-ui .qc-cmp2-close-icon::after{transform:rotate(-45deg)!important;}
