/* CIDB V18 - live WordPress agreement workflow embedded in standalone site.
   All other V17 styles stay untouched. */
@layer builder-admin-priority {
  html[data-theme="light"] body main .cidb-contract-shell.cidb-contract-embed-shell {
    width:100%!important;
    max-width:none!important;
    margin:24px auto 60px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html[data-theme="light"] body main .cidb-contract-embed {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  html[data-theme="light"] body main .cidb-contract-frame {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    height:500px;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    overflow:hidden!important;
  }
  html[data-theme="light"] body main .cidb-contract-embed-loading,
  html[data-theme="light"] body main .cidb-contract-embed-unavailable {
    box-sizing:border-box!important;
    padding:19px 24px!important;
    margin:18px 0!important;
    border:1px solid #ded4c1!important;
    border-radius:12px!important;
    background:#f8f4eb!important;
    color:#2b4739!important;
    font:600 15px/1.65 Arial,sans-serif!important;
  }
  html[data-theme="light"] body main .cidb-contract-embed-unavailable {
    border-color:#deba81!important;
    background:#fff4e5!important;
    color:#7c532c!important;
  }
  html[data-theme="light"] body main .cidb-contract-embed-help {
    margin:12px 0 0!important;
    font:600 13px/1.5 Arial,sans-serif!important;
    text-align:right!important;
  }
  html[data-theme="light"] body main .cidb-contract-embed-help a {
    color:#86632d!important;
    text-decoration:underline!important;
  }
  html[data-theme="light"] body main .cidb-contract-embed :is([hidden]) { display:none!important; }
  @media(max-width:767px) {
    html[data-theme="light"] body main .wrap.cidb-contract {width:calc(100% - 24px)!important;}
    html[data-theme="light"] body main .cidb-contract-frame {width:100%!important;}
  }
}
