/* Picorae digital photo booth v18.27: accessible, phone-first, local rendering. */
.p2booth-entry{margin:14px 0 9px}
.p2booth-launch{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:60px;flex-wrap:wrap;border:1px solid #b79967!important;background:linear-gradient(115deg,#fbf4e8,#fffcf7)!important;color:#564027!important;border-radius:13px!important;box-shadow:0 5px 17px rgba(70,49,15,.07);padding:10px 13px}
.p2booth-launch[hidden]{display:none!important}
.p2booth-launch span{font-size:24px;color:#ab853e}.p2booth-launch strong{font:600 17px/1.2 Georgia,serif}.p2booth-launch small{flex-basis:100%;color:#6b5942;font-size:11px;font-weight:500}
.p2booth-overlay[hidden]{display:none!important}
.p2booth-overlay{position:fixed;inset:0;z-index:16500;background:rgba(20,17,14,.79);display:flex;align-items:center;justify-content:center;padding:12px;overscroll-behavior:contain}
.p2booth-sheet{box-sizing:border-box;width:100%;max-width:600px;max-height:95dvh;overflow-y:auto;border:1px solid #e4d7c6;border-radius:20px;padding:clamp(14px,3.3vw,24px);background:#fffcf6;color:#372d24;box-shadow:0 24px 75px rgba(0,0,0,.4);font-family:system-ui,-apple-system,sans-serif;overscroll-behavior:contain}
.p2booth-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.p2booth-heading small{font-size:10px;font-weight:700;letter-spacing:.17em;color:#9a794a}
.p2booth-heading h2{font:500 clamp(24px,5vw,34px)/1.12 Georgia,serif;color:#483526;margin:6px 0}
.p2booth-heading p{font-size:12px;line-height:1.45;color:#6f6153;margin:0}
#p2boothClose{width:36px;height:36px;flex:0 0 36px;border:1px solid #e1d1ba;border-radius:50%;background:#fff6e6;color:#483526;font-size:17px;cursor:pointer}
.p2booth-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}
.p2booth-mode button{border:1px solid #d5c3a7;min-height:41px;border-radius:9px;color:#584736;background:#fff7eb;font-size:12px;font-weight:650;cursor:pointer}
.p2booth-mode button[aria-pressed="true"]{background:#53402d;color:#fff;border-color:#53402d}
.p2booth-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:11px}
.p2booth-controls label{font-size:11px;font-weight:650;color:#675745}
.p2booth-controls select{display:block;margin-top:5px;width:100%;padding:9px 6px;min-height:40px;border:1px solid #d5c3aa;border-radius:8px;background:white;color:#44382d;font:12px system-ui,sans-serif}
.p2booth-video-box{position:relative;width:100%;max-height:290px;min-height:175px;border-radius:12px;overflow:hidden;background:#251f1a;display:flex;align-items:center;justify-content:center}
.p2booth-video-box[hidden],.p2booth-preview[hidden]{display:none!important}
.p2booth-video-box video{width:100%;max-height:290px;min-height:175px;object-fit:cover;transform:scaleX(-1)}
.p2booth-camera-hint{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:#eddfcc;text-align:center;pointer-events:none;padding:18px;font:500 18px/1.3 Georgia,serif;background:linear-gradient(135deg,#312820,#5c4939)}.p2booth-camera-hint[hidden]{display:none!important}.p2booth-camera-hint>span{font-size:17px}.p2booth-camera-hint>small{font:12px/1.4 system-ui,sans-serif;color:#ddd0bb}
.p2booth-countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;text-shadow:0 3px 22px rgba(0,0,0,.75);font:bold 90px/1 system-ui,sans-serif;pointer-events:none}
.p2booth-actions button[hidden],.p2booth-ready-actions button[hidden]{display:none!important}
.p2booth-ready-actions[hidden]{display:none!important}
.p2booth-ready-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0 12px;position:sticky;bottom:0;background:#fffcf6;padding:10px;border:1px solid #e8dac4;border-radius:11px;box-shadow:0 4px 18px rgba(57,39,20,.12);z-index:3}
.p2booth-ready-actions button{padding:12px 10px;border-radius:9px;min-height:48px;border:1px solid #bfa47a;background:#f8eddb;color:#4c3929;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer}
#p2boothSaveTop{background:#493826;color:#fff;border-color:#493826}
#p2boothSendTop:not([hidden]){background:#e5d4af;border-color:#ae8a58;grid-column:1/-1}
#p2boothRetakeTop{grid-column:1/-1}
.p2booth-copy-hint{font-size:11px;color:#74614d;grid-column:1/-1;margin:0!important;line-height:1.45;text-align:center}
.p2booth-ready-actions button:disabled{opacity:.5;cursor:not-allowed}
.p2booth-preview{display:flex;justify-content:center;align-items:center;background:#dcd7d0;padding:10px;max-height:385px;overflow:auto;border-radius:12px}
.p2booth-preview img{display:block;max-width:100%;max-height:370px;object-fit:contain;border-radius:3px}
.p2booth-counter{text-align:center;font-size:11px;font-weight:700;letter-spacing:.1em;color:#806643;margin:9px 0 2px!important}
.p2booth-status{text-align:center;min-height:22px;line-height:1.5;font-size:12px;color:#486b4c;margin:6px 0 11px!important}
.p2booth-status[data-error="true"]{color:#a83e2e}
.p2booth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.p2booth-actions button,.p2booth-actions .p2booth-files{box-sizing:border-box;min-height:44px;border-radius:9px;border:1px solid #c9b696;background:#faf3e7;color:#4f3c2a;display:flex;justify-content:center;align-items:center;text-align:center;font:650 12px/1.25 system-ui,sans-serif;padding:9px;cursor:pointer}
.p2booth-actions button:disabled{opacity:.46;cursor:not-allowed}
.p2booth-native{grid-column:1/-1;background:#eee3d0!important;border-color:#ac8a58!important;color:#42301d!important;min-height:48px!important}
.p2booth-files input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#p2boothUpload{background:#4c3926;color:white;border-color:#4c3926}
#p2boothRetake{background:#fff;border-color:#e0d8c9;grid-column:1/-1}
.p2booth-privacy{font-size:10px;line-height:1.6;color:#776a5d;border-top:1px solid #eadfce;padding-top:11px;margin:14px 0 0!important}
.p2booth-overlay button:focus-visible,.p2booth-overlay select:focus-visible,.p2booth-overlay input:focus-visible,.p2booth-overlay label:focus-within{outline:3px solid #bb9256;outline-offset:2px}
@media (max-width:380px){.p2booth-overlay{padding:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.p2booth-sheet{border-radius:13px;padding:12px;max-height:calc(100dvh - 12px - env(safe-area-inset-bottom))}.p2booth-heading h2{font-size:24px}.p2booth-video-box{max-height:220px}.p2booth-actions{gap:6px}}

.p2booth-host-card{min-height:95px}
.p2booth-host-status{font-size:12px;color:#736045;line-height:1.4;margin:8px 0 15px!important;max-width:540px}
.p2booth-host-status[data-error="true"]{color:#a03e28}
.p2booth-ready-actions #p2boothSendTop[hidden]{display:none!important}
