/* Scoped layout for the account, guest, billing and estate-agency extensions. */
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2){
  box-sizing:border-box;min-width:0;margin-block:32px;padding:clamp(18px,3vw,30px);
  border:1px solid #d4e0e9;border-radius:16px;background:#fff;color:#173551;
}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) :is(h2,h3,p,label,a,button){overflow-wrap:anywhere}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) h2{margin:0 0 20px;line-height:1.3}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) h3{margin:0 0 12px;line-height:1.4}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) p{line-height:1.65}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .quota{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin-block:20px}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .quota>p{margin:0;padding:18px;border:1px solid #d4e0e9;border-radius:12px;background:#f1f6fa;font-weight:700}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .commerce-form,
#billing-v2-confirmation form{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;margin-block:22px;padding:22px;border:1px solid #d4e0e9;border-radius:12px;background:#f5f8fb}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) form>p{margin:0}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) label:not(.check){display:block;margin:0;font-weight:700;line-height:1.5}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) input:not([type=checkbox]){box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:48px;margin:0;padding:12px 14px;border:1px solid #aabfce;border-radius:8px;background:#fff;color:#173551;font:inherit}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .check{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:12px;width:100%;margin:8px 0;font-size:15px;font-weight:500;line-height:1.65;cursor:pointer}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) input[type=checkbox]{box-sizing:border-box;display:block;float:none;width:22px;height:22px;min-width:22px;min-height:22px;margin:2px 0 0;accent-color:#1667b0;cursor:pointer}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .button,
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;justify-self:start;gap:10px;width:fit-content;max-width:100%;min-height:48px;margin-block:6px;padding:12px 18px;border-radius:9px;white-space:normal;text-align:center;line-height:1.4}
:is(#agency-v2-panel,#agency-v2-space) .order{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;margin-block:18px;padding:24px;border:1px solid #cfdee9;border-radius:14px;background:#f9fbfd}
:is(#agency-v2-panel,#agency-v2-space) .order>h3{margin:0;font-size:18px;letter-spacing:.01em}
:is(#agency-v2-panel,#agency-v2-space) .order>p{margin:0}
:is(#agency-v2-panel,#agency-v2-space) .order>.button,
:is(#agency-v2-panel,#agency-v2-space) .order>button{align-self:flex-start}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .source-note{margin-block:14px;padding:16px 18px;border-left:3px solid #a18a5b;border-radius:0 8px 8px 0;background:#f3f6f8;font-size:14px;line-height:1.7}
:is(#agency-v2-panel,#agency-v2-space) .order>div.source-note{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;padding:16px;border:1px solid #d4e0e9;border-radius:10px;background:#fff}
:is(#agency-v2-panel,#agency-v2-space) .order>div.source-note>p{margin:0}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) :is(button,input,a):focus-visible{outline:3px solid #965817;outline-offset:4px}
:is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) [hidden]{display:none!important}
@media(max-width:560px){
  :is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2){margin-block:24px;padding:18px 16px;border-radius:12px}
  :is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .commerce-form,#billing-v2-confirmation form{padding:18px 14px;gap:16px}
  :is(#agency-v2-panel,#agency-v2-space) .order{padding:18px 14px;gap:16px}
  :is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .button,
  :is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) button{width:100%;justify-self:stretch;align-self:stretch}
  :is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .check{gap:12px;line-height:1.7}
  :is(#agency-v2-panel,#agency-v2-space,#guest-purchase-v2,#billing-v2) .source-note{padding:14px}
}
