/* Full-screen modal shell for the AGA Photo Book builder. */
html.pbx-book-modal-open,
html.pbx-book-modal-open body{overflow:hidden!important;height:100%}
.pbx .pbx-modal-chrome{display:none}
.pbx.pbx-book-modal-active{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;z-index:2147482000!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;background:#f7f8fb!important;isolation:isolate}
.pbx.pbx-book-modal-active .pbx-modal-chrome{position:sticky;top:0;z-index:2147482300;height:64px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px;background:#fff;border-bottom:1px solid #e9ebef;box-shadow:0 1px 8px #0000000a}
.pbx-modal-chrome__title{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;font-weight:700;letter-spacing:.02em;color:#20242a}
.pbx-modal-chrome__title:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--pbx-accent,#5275ff);box-shadow:0 0 0 4px rgba(82,117,255,.12)}
.pbx-modal-close{min-width:82px;height:36px;padding:0 13px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #e0e3e8!important;border-radius:4px;background:#fff!important;color:#343941!important;font:700 10px/1 Arial,sans-serif!important;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.pbx-modal-close:hover{background:#f4f5f7!important;border-color:#cfd4db!important;transform:scale(1.03)}
.pbx-modal-close:focus-visible{outline:2px solid var(--pbx-accent,#5275ff);outline-offset:2px}
.pbx.pbx-book-modal-active .pbx-form{min-height:calc(100dvh - 64px);background:#fff}
.pbx.pbx-book-modal-active .pbx-launch{min-height:calc(100dvh - 64px)}
.pbx.pbx-book-modal-active .pbx-upload{min-height:calc(100dvh - 64px);padding:42px 20px;background:#f7f8fb}
.pbx.pbx-book-modal-active .pbx-upload__card{width:min(640px,100%);padding:48px;background:#fff;border-color:#e0e3e8;border-radius:2px;box-shadow:0 18px 60px #16223817}
.pbx.pbx-book-modal-active .pbx-upload__drop{min-height:240px;background:#fbfcff}
.pbx.pbx-book-modal-active .pbx-builder{width:min(1120px,calc(100% - 48px));padding:34px 0 84px}
.pbx.pbx-book-modal-active .pbx-preview-zone,
.pbx.pbx-book-modal-active .pbx-controls{width:min(760px,100%);margin-left:auto;margin-right:auto}
.pbx.pbx-book-modal-active .pbx-pages{width:min(920px,100%);margin-left:auto;margin-right:auto}
.pbx.pbx-book-modal-active .pbx-pages-list,
.pbx.pbx-book-modal-active .pbx-pages__heading{width:min(760px,100%)}
.pbx.pbx-book-modal-active .pbx-back-cover{margin-top:64px}
@media(max-width:760px){
  .pbx.pbx-book-modal-active .pbx-modal-chrome{height:56px;padding:0 14px}
  .pbx.pbx-book-modal-active .pbx-form{min-height:calc(100dvh - 56px)}
  .pbx.pbx-book-modal-active .pbx-upload{min-height:calc(100dvh - 56px);padding:22px 14px}
  .pbx.pbx-book-modal-active .pbx-upload__card{padding:30px 20px}
  .pbx.pbx-book-modal-active .pbx-upload__drop{min-height:210px}
  .pbx.pbx-book-modal-active .pbx-builder{width:min(calc(100% - 24px),1120px);padding-top:24px}
  .pbx-modal-close{width:38px;height:38px}
}
@media(max-width:480px){
  .pbx-modal-chrome__title{font-size:12px}
  .pbx.pbx-book-modal-active .pbx-upload__card h2{font-size:30px}
}
