/* Flipa flipbook editor metabox styles. Enqueued on the flipa_book edit screen. */

/* ---- layout grid + general ---- */
.flipa-grid{display:grid;grid-template-columns:180px 1fr;gap:14px 16px;align-items:start;max-width:720px}
.flipa-grid > label{font-weight:600;padding-top:6px}      /* top-align labels with their field */
.flipa-full{grid-column:1/-1}
.flipa-toggles{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 24px;max-width:720px}
.flipa-hint{color:#666;font-size:12px;margin:6px 0 0}
.flipa-scbar{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px;background:#f6f7f7;border:1px solid #dcdcde;border-radius:6px;max-width:720px}
.flipa-scbar code{user-select:all;font-size:13px;cursor:pointer;padding:3px 8px;border-radius:4px;border:1px solid #dcdcde;background:#fff;transition:background .2s,color .2s}
.flipa-scbar code:hover{border-color:#2271b1}
.flipa-scbar code.flipa-flash{background:#107a3e;color:#fff;border-color:#107a3e}
#flipa-toast{position:fixed;left:50%;bottom:34px;transform:translateX(-50%);background:#1d2327;color:#fff;padding:10px 18px;border-radius:6px;font-size:13px;z-index:99999;opacity:0;transition:opacity .2s;pointer-events:none}
#flipa-toast.on{opacity:.96}
.flipa-pro-badge{display:inline-block;font:700 10px/1 system-ui,sans-serif;letter-spacing:.5px;color:#fff;background:#2f6bff;border-radius:4px;padding:3px 6px;vertical-align:middle;margin-inline-start:6px}
.flipa-upsell{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 16px;background:#eef3ff;border:1px solid #c7d6ff;border-radius:8px;max-width:720px}
.flipa-upsell .flipa-pro-badge{margin:0}
.flipa-upsell a.button{margin-inline-start:auto}
.flipa-lock-note{color:#2f6bff;font-size:12px;margin:8px 0 0}
.flipa-more-pro{color:#2f6bff;font-size:12px;margin:10px 0 0}

/* ---- tabs ---- */
.flipa-tabs{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid #c3c4c7;margin:8px 0 0}
.flipa-tab{background:#f0f0f1;border:1px solid #c3c4c7;border-bottom:0;border-radius:6px 6px 0 0;padding:8px 15px;cursor:pointer;font-weight:600;color:#50575e;margin-bottom:-1px}
.flipa-tab.active{background:#fff;color:#1d2327}
.flipa-panel{display:none;border:1px solid #c3c4c7;border-top:0;padding:18px 16px;background:#fff;border-radius:0 0 6px 6px;max-width:780px}
.flipa-panel.active{display:block}
.flipa-toc-handle{cursor:grab;color:#9aa0a6;user-select:none;font-size:16px;text-align:center}
#flipa-toc tr.ui-sortable-helper{box-shadow:0 6px 16px rgba(0,0,0,.18);background:#fff;display:table}

/* ---- media hotspot cards ---- */
#flipa-media .flipa-mcard{border:1px solid #dcdcde;border-radius:8px;padding:10px 12px;margin:10px 0;background:#fff}
#flipa-media .flipa-mcard-row{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin:6px 0}
#flipa-media .fm-fld{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#555}
#flipa-media .fm-fld>span{font-size:11px;color:#666}
#flipa-media .fm-fld.fm-grow{flex:1 1 220px}
#flipa-media .fm-fld.fm-grow input{width:100%}
#flipa-media .fm-fld input[type=color]{width:40px;height:30px;padding:0;border:1px solid #c3c4c7}
#flipa-media .flipa-mcard .fm-only-button,#flipa-media .flipa-mcard .fm-only-video{display:none}
#flipa-media .flipa-mcard.fm-type-button .fm-only-media{display:none}
#flipa-media .flipa-mcard.fm-type-button .fm-only-button{display:flex}
#flipa-media .flipa-mcard.fm-type-video .fm-only-video{display:flex}
