/* GoBapu Live Page Editor 1.0.1 */
#gblpe-toolbar, #gblpe-toolbar *, #gblpe-panel, #gblpe-panel *, #gblpe-edit-badge { box-sizing: border-box; }
#gblpe-toolbar.gblpe-toolbar {
    position: fixed !important;
    z-index: 2147483000 !important;
    left: 16px !important;
    right: auto !important;
    bottom: 16px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: min(430px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 11px 13px;
    border: 1px solid #d6e8dc;
    border-radius: 15px;
    background: #073d31;
    color: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,.28);
    font: 600 13px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;
}
#gblpe-toolbar .gblpe-toolbar-top { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
#gblpe-toolbar .gblpe-toolbar-brand { display:flex; align-items:center; gap:8px; white-space:nowrap; min-width:0; }
#gblpe-toolbar .gblpe-brand-dot { display:inline-flex; flex:0 0 25px; width:25px; height:25px; border-radius:50%; align-items:center; justify-content:center; background:#e4b84c; color:#073d31; font-weight:900; }
#gblpe-toolbar .gblpe-admin-only { border:1px solid rgba(255,255,255,.35); border-radius:4px; padding:2px 4px; font-size:9px; letter-spacing:.08em; }
#gblpe-toolbar .gblpe-toolbar-actions { display:flex; flex-wrap:wrap; gap:8px; }
#gblpe-toolbar .gblpe-btn, #gblpe-panel .gblpe-btn { appearance:none; border:0; border-radius:8px; padding:9px 12px; cursor:pointer; font:700 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif; }
#gblpe-toolbar .gblpe-btn-primary, #gblpe-panel .gblpe-btn-primary { background:#e6bd56; color:#142b20; }
#gblpe-toolbar .gblpe-btn-quiet, #gblpe-panel .gblpe-btn-quiet { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22); }
#gblpe-toolbar .gblpe-state { color:#d7e9dc; font-size:11px; white-space:nowrap; }
#gblpe-toolbar .gblpe-toolbar-hint { color:#d7e9dc; font-size:11px; line-height:1.35; }
#gblpe-panel.gblpe-panel {
    position:fixed !important; z-index:2147483001 !important;
    left:16px !important; right:auto !important; bottom:168px !important;
    width:min(420px,calc(100vw - 32px)); max-height:min(66vh,620px); overflow:auto;
    padding:16px; border:1px solid #cfe0d4; border-radius:16px; background:#fff; color:#15382a;
    box-shadow:0 15px 50px rgba(0,0,0,.30); font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
}
#gblpe-panel[hidden], #gblpe-edit-badge[hidden] { display:none !important; }
#gblpe-panel .gblpe-panel-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; font-size:16px; }
#gblpe-panel #gblpe-close { border:0; background:transparent; color:#335847; font-size:26px; line-height:1; cursor:pointer; }
#gblpe-panel .gblpe-fields { display:grid; gap:11px; }
#gblpe-panel .gblpe-field { display:grid; gap:5px; color:#385a49; font-size:12px; font-weight:700; }
#gblpe-panel .gblpe-field input, #gblpe-panel .gblpe-field textarea { width:100%; max-width:100%; border:1px solid #cbded1; border-radius:8px; background:#fbfdfb; color:#172a20; padding:10px; font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif; box-shadow:none; }
#gblpe-panel .gblpe-field textarea { resize:vertical; min-height:76px; }
#gblpe-panel .gblpe-panel-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:14px; }
#gblpe-panel #gblpe-message { flex-basis:100%; min-height:18px; font-size:12px; }
#gblpe-panel #gblpe-message.gblpe-success { color:#127344; }
#gblpe-panel #gblpe-message.gblpe-error { color:#b42318; }
#gblpe-panel .gblpe-btn-quiet { color:#244235; background:#edf4ef; border:1px solid #d4e2d8; }
#gblpe-panel .gblpe-btn-secondary { background:#edf4ef; color:#173d2d; border:1px solid #c9ddd0; margin-top:8px; }
#gblpe-edit-badge.gblpe-edit-badge {
    position:fixed !important; z-index:2147483002 !important; display:inline-flex; align-items:center; justify-content:center;
    min-width:70px; height:30px; padding:0 10px; border:2px solid #fff; border-radius:999px;
    background:#e4b84c; color:#063d30; box-shadow:0 4px 16px rgba(0,0,0,.3);
    font:800 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif; cursor:pointer; pointer-events:auto;
}
body.gblpe-edit-mode .gblpe-hover-target { outline:2px dashed #e0a92f !important; outline-offset:3px !important; cursor:crosshair !important; }
body.gblpe-edit-mode img.gblpe-hover-target { outline-offset:2px !important; }
@media (max-width:640px) {
    #gblpe-toolbar.gblpe-toolbar { left:8px !important; right:auto !important; bottom:84px !important; width:min(360px,calc(100vw - 16px)); max-width:calc(100vw - 16px); padding:9px 10px; }
    #gblpe-toolbar .gblpe-toolbar-brand { font-size:11px; }
    #gblpe-toolbar .gblpe-btn { padding:8px 9px; }
    #gblpe-toolbar .gblpe-state { display:none; }
    #gblpe-panel.gblpe-panel { left:8px !important; right:auto !important; bottom:220px !important; width:calc(100vw - 16px); max-height:55vh; }
}
@media (max-height:520px) {
    #gblpe-toolbar.gblpe-toolbar { bottom:8px !important; }
    #gblpe-panel.gblpe-panel { bottom:118px !important; max-height:54vh; }
}

/* v1.0.2: builder palette, drag/drop zones, and inserted blocks */
#gblpe-toolbar .gblpe-btn-secondary, #gblpe-panel .gblpe-btn-secondary { background:#e8f1eb; color:#153d2c; border:1px solid #c8ddcf; }
#gblpe-toolbar .gblpe-btn-danger, #gblpe-panel .gblpe-btn-danger { background:#fff0ef; color:#a12620; border:1px solid #efc2bd; }
#gblpe-toolbar .gblpe-btn.gblpe-active { outline:2px solid #e6bd56; outline-offset:2px; }
#gblpe-builder-palette.gblpe-builder-palette {
  position:fixed !important; z-index:2147483003 !important; left:16px !important; bottom:190px !important;
  width:min(370px,calc(100vw - 32px)); max-height:55vh; overflow:auto; padding:14px;
  border:1px solid #cfe0d4; border-radius:15px; background:#fff; color:#173d2c;
  box-shadow:0 15px 45px rgba(0,0,0,.28); font:13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
}
#gblpe-builder-palette[hidden] { display:none !important; }
#gblpe-builder-palette .gblpe-palette-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; font-size:14px; }
#gblpe-builder-palette #gblpe-palette-close { border:0; background:transparent; color:#244d37; font-size:24px; cursor:pointer; line-height:1; }
#gblpe-builder-palette .gblpe-palette-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#gblpe-builder-palette .gblpe-palette-item { min-width:0; display:grid; grid-template-columns:28px 1fr; grid-template-rows:auto auto; column-gap:8px; align-items:center; text-align:left; border:1px solid #d4e5d9; border-radius:10px; padding:9px; background:#f7fbf8; color:#173d2c; cursor:grab; }
#gblpe-builder-palette .gblpe-palette-item:active { cursor:grabbing; }
#gblpe-builder-palette .gblpe-palette-item > span { grid-row:1 / span 2; display:flex; align-items:center; justify-content:center; width:27px; height:27px; border-radius:8px; background:#0d6b4f; color:#fff; font-weight:900; font-size:16px; }
#gblpe-builder-palette .gblpe-palette-item b { font-size:12px; }
#gblpe-builder-palette .gblpe-palette-item small { font-size:10px; color:#61766a; }
#gblpe-builder-palette .gblpe-palette-item:hover { border-color:#d7ad43; background:#fffdf4; }
#gblpe-builder-palette .gblpe-palette-note { margin:11px 0 0; color:#61766a; font-size:11px; }
body.gblpe-edit-mode .gblpe-drop-zone { outline:1px dashed rgba(13,107,79,.28); outline-offset:3px; }
body.gblpe-edit-mode .gblpe-drop-active { outline:3px dashed #d9a92e !important; outline-offset:4px !important; background-color:rgba(234,195,86,.10) !important; }
body.gblpe-edit-mode .gblpe-movable { position:relative; }
.gblpe-drag-handle { display:none; position:absolute !important; z-index:2147482998 !important; top:7px !important; left:7px !important; min-width:68px; padding:6px 9px !important; border:1px solid #fff !important; border-radius:999px !important; background:#0b6448 !important; color:#fff !important; box-shadow:0 3px 12px rgba(0,0,0,.25) !important; font:800 11px/1 system-ui,sans-serif !important; cursor:grab !important; pointer-events:auto !important; }
body.gblpe-edit-mode .gblpe-movable:hover > .gblpe-drag-handle { display:inline-flex; align-items:center; justify-content:center; }
.gblpe-drag-handle:active { cursor:grabbing !important; }
.gblpe-dragging { opacity:.55 !important; outline:2px dashed #d9a92e !important; }
.gblpe-drop-before { box-shadow:inset 0 4px 0 #d9a92e !important; }
.gblpe-drop-after { box-shadow:inset 0 -4px 0 #d9a92e !important; }
.gblpe-added-section { box-sizing:border-box; width:100%; margin:22px auto; padding:30px clamp(18px,4vw,48px); border-radius:20px; color:#18372a; }
.gblpe-added-section-inner { width:min(100%,1160px); margin:0 auto; }
.gblpe-added-section-title { margin:0 0 15px; color:inherit; font-size:clamp(24px,3vw,36px); line-height:1.2; }
.gblpe-added-heading { margin:18px 0 10px; color:inherit; font-size:clamp(22px,2.5vw,32px); line-height:1.2; }
.gblpe-added-text { margin:10px 0 16px; color:inherit; line-height:1.65; }
.gblpe-added-button { display:inline-flex; align-items:center; justify-content:center; margin:10px 8px 10px 0; padding:13px 22px; border-radius:10px; background:#0d6b4f; color:#fff !important; font-weight:800; text-decoration:none !important; }
.gblpe-added-button:hover { background:#084d38; color:#fff !important; }
.gblpe-added-image { display:block; max-width:100%; height:auto; margin:12px 0; border-radius:12px; }
.gblpe-added-image-link { display:inline-block; }
#gblpe-panel .gblpe-field input[type="color"] { display:block; width:100%; height:42px; padding:4px; }
#gblpe-panel .gblpe-field input[type="checkbox"] { width:18px; height:18px; }
@media (max-width:640px) {
  #gblpe-builder-palette.gblpe-builder-palette { left:8px !important; bottom:205px !important; width:calc(100vw - 16px); max-height:42vh; }
  #gblpe-builder-palette .gblpe-palette-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #gblpe-panel.gblpe-panel { bottom:230px !important; max-height:50vh; }
  #gblpe-toolbar .gblpe-toolbar-actions { gap:6px; }
}
