/* =========================================================
   BeMe Parent Accounts — account controls v0.1.4
   Small plugin-owned UI additions only.
   ========================================================= */

.beme-dashboard-profile {
    gap: 14px;
}

.beme-parent-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    margin-left: 4px;
    padding: 8px 13px;
    border: 1px solid rgba(106, 225, 204, .22);
    border-radius: 11px;
    background: rgba(106, 225, 204, .06);
    color: #72dfcc;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.beme-parent-logout:hover,
.beme-parent-logout:focus {
    border-color: rgba(106, 225, 204, .42);
    background: rgba(106, 225, 204, .11);
    color: #aaf2e5;
    outline: none;
    box-shadow: none;
}

.beme-parent-logout:disabled {
    opacity: .62;
    cursor: wait;
}

.beme-login-success {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid rgba(98, 222, 199, .25);
    border-radius: 12px;
    background: rgba(98, 222, 199, .08);
    color: #a8f3e5;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .beme-dashboard-profile {
        flex-wrap: wrap;
    }

    .beme-parent-logout {
        margin-left: 0;
    }
}

/* =========================================================
   BeMe Parent Accounts — dashboard controls v0.2.1
   ========================================================= */

.beme-privacy-options { display: grid; gap: 9px; margin-top: 18px; }
.beme-privacy-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.025); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.beme-privacy-option:hover, .beme-privacy-option:focus { border-color: rgba(106,225,204,.3); background: rgba(106,225,204,.055); outline: none; }
.beme-privacy-option span { display: grid; gap: 3px; }
.beme-privacy-option strong { color: #f4f8f7; font-size: 13px; font-weight: 750; }
.beme-privacy-option small { color: rgba(226,237,235,.58); font-size: 11px; line-height: 1.4; }
.beme-privacy-option b { color: #72dfcc; font-size: 17px; font-weight: 500; }
.beme-privacy-note { margin-top: 13px; color: rgba(226,237,235,.5); font-size: 10.5px; line-height: 1.5; }

.beme-account-modal-dialog { max-width: 510px; }
.beme-account-modal-copy { margin: 8px 0 20px; color: rgba(226,237,235,.65); font-size: 13px; line-height: 1.55; }
#beme-account-form { display: grid; gap: 15px; }
.beme-account-field { display: grid; gap: 7px; }
.beme-account-field > span { color: rgba(238,246,244,.8); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.beme-account-field input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; background: rgba(255,255,255,.04); color: #f4f8f7; font: inherit; outline: none; box-sizing: border-box; }
.beme-account-field input:focus { border-color: rgba(106,225,204,.48); box-shadow: 0 0 0 3px rgba(106,225,204,.07); }
.beme-account-field input:disabled { opacity: .58; cursor: not-allowed; }
.beme-account-field small { color: rgba(226,237,235,.46); font-size: 10.5px; }
.beme-account-form-message { min-height: 18px; font-size: 12px; line-height: 1.4; }
.beme-account-form-message.is-success { color: #8ce7d6; }
.beme-account-form-message.is-error { color: #ff9f9f; }
.beme-account-save { border: 0; cursor: pointer; }
.beme-account-save:disabled { opacity: .6; cursor: wait; }

.beme-privacy-integration-note { position: fixed; right: 22px; bottom: 22px; z-index: 99999; max-width: 390px; padding: 13px 15px; border: 1px solid rgba(106,225,204,.25); border-radius: 12px; background: #10201e; color: #dff7f2; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: 12px; line-height: 1.5; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.beme-privacy-integration-note.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
    .beme-privacy-integration-note { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* v0.7.3 — plan choices belong to the selected child. */
#beme-child-plan-options { border:0; padding:0; margin:20px 0 12px; display:grid; gap:10px; min-width:0; }
#beme-child-plan-options[hidden] { display:none !important; }
#beme-child-plan-options legend { color:#f1f5f9; font-size:14px; font-weight:600; padding:0 0 12px; }
#beme-plan-dashboard-selected .beme-child-choice,
#beme-plan-dashboard-selected .beme-child-choice span,
#beme-plan-dashboard-selected .beme-child-choice strong { color:#f1f5f9 !important; }
#beme-plan-dashboard-selected .beme-child-choice small { color:#b8c9d6 !important; opacity:1 !important; }
#beme-plan-dashboard-selected .beme-child-choice .beme-email-text-button { color:#4dd4c4 !important; }
#beme-protection-modal button#beme-protection-go { background:linear-gradient(110deg,#24cbbb,#4388ff) !important; color:#062434 !important; border:1px solid transparent !important; font-weight:600; }
#beme-protection-modal button#beme-protection-go:hover,
#beme-protection-modal button#beme-protection-go:focus-visible { background:linear-gradient(110deg,#40ddcd,#66a2ff) !important; color:#062434 !important; }
#beme-protection-modal button#beme-protection-close { background:#edf6f8 !important; color:#173746 !important; border:1px solid #bdd8df !important; }
#beme-protection-modal button#beme-protection-close:hover,
#beme-protection-modal button#beme-protection-close:focus-visible { background:#dceef1 !important; color:#173746 !important; }

/* v0.7.4 — current billing period and portal status */
#beme-billing-details { display:grid; grid-template-columns:minmax(120px,1fr) minmax(100px,1fr); gap:8px 14px; margin:18px 0 0; padding-top:16px; border-top:1px solid rgba(125,151,165,.25); font-size:13px; line-height:1.5; }
#beme-billing-details dt { color:#b8c9d6; font-weight:400; }
#beme-billing-details dd { margin:0; color:#f1f5f9; font-weight:600; text-align:right; }
#beme-protection-setup { margin-top:18px; color:#c4d3df; font-size:13px; line-height:1.6; }
#beme-protection-setup p { color:#c4d3df; margin:0 0 12px; }
#beme-protection-setup button { white-space:normal; }
.beme-portal-card .beme-primary-button { width:100%; margin-top:16px; }
@media(max-width:480px) { #beme-billing-details { grid-template-columns:1fr; gap:3px; } #beme-billing-details dd { text-align:left; margin-bottom:9px; } }
.beme-portal-card .beme-lock-icon[hidden] { display:none !important; }

/* BeMe v0.7.6: notices use existing site fonts and colours. */
.beme-child-profile-notice,.beme-setup-explainer{background:#f0fafa;border:1px solid #c8e5e6;border-radius:14px;padding:18px;margin:0 0 20px;color:#193847;font-size:14px;line-height:1.6}
.beme-child-profile-notice strong,.beme-setup-explainer strong{color:#102f40}
.beme-child-profile-notice p,.beme-setup-explainer p{color:#36535f;margin:8px 0}
.beme-child-profile-notice a{color:#087c87;text-decoration:underline;overflow-wrap:anywhere}
.beme-child-profile-check{display:flex;align-items:flex-start;gap:10px;margin-top:14px;color:#193847;cursor:pointer}
.beme-child-profile-check input{flex:0 0 auto;width:18px;height:18px;margin-top:4px;accent-color:#119da5}
.beme-child-profile-check span{color:#193847}
#beme-child-modal .beme-modal-dialog{max-height:90dvh;overflow:auto}
.beme-login-portal-note{margin:16px 0;color:inherit;font-size:14px;line-height:1.6}

/* BeMe privacy panel and setup explainer v0.7.7 */
.beme-dashboard .beme-setup-explainer{background:linear-gradient(130deg,#10283b,#102f3c);border:1px solid rgba(87,226,205,.22);border-radius:20px;padding:26px;margin:0 0 28px;color:#dbe8ef;line-height:1.6;box-shadow:0 14px 40px rgba(0,0,0,.12)}
.beme-dashboard .beme-setup-explainer .beme-explainer-kicker{color:#61e2ca;font-size:10px;font-weight:800;letter-spacing:.14em}
.beme-dashboard .beme-setup-explainer h2{color:#fff;font-size:23px;line-height:1.3;margin:8px 0 20px}
.beme-dashboard .beme-explainer-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.beme-dashboard .beme-explainer-steps>div{position:relative;padding-left:38px}
.beme-dashboard .beme-explainer-steps>div>span{position:absolute;left:0;top:0;background:rgba(80,222,197,.12);color:#66ebd1;border:1px solid rgba(102,235,209,.3);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:700}
.beme-dashboard .beme-setup-explainer strong{color:#fff;display:block;font-size:14px}
.beme-dashboard .beme-setup-explainer p{color:#c0d2df;font-size:13px;margin:7px 0 0;line-height:1.65}
.beme-dashboard .beme-setup-explainer details{border-top:1px solid rgba(255,255,255,.1);padding-top:14px;margin-top:20px}
.beme-dashboard .beme-setup-explainer summary{color:#87dcd3;cursor:pointer;font-size:12px;font-weight:600}
.beme-privacy-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(3,14,25,.78);padding:24px;display:flex;align-items:center;justify-content:center;overscroll-behavior:contain}
.beme-privacy-dialog,.beme-privacy-dialog *{box-sizing:border-box}
.beme-privacy-dialog{background:#fff;color:#183747;width:min(1120px,100%);max-height:calc(100dvh - 48px);border-radius:20px;box-shadow:0 24px 90px #0005;overflow:auto;font:14px/1.6 system-ui,sans-serif}
.beme-privacy-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #d9e8ec}
.beme-privacy-dialog header small{color:#12848c;font-size:10px;font-weight:800;letter-spacing:.12em}
.beme-privacy-dialog h2{color:#123547;margin:3px 0 0;font-size:23px;line-height:1.3}
.beme-privacy-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:18px 24px 0}
.beme-privacy-toolbar label{display:grid;gap:5px;flex:1;min-width:180px;font-weight:600;color:#234657}
.beme-privacy-toolbar select{width:100%;border:1px solid #bfd3dc;border-radius:9px;background:#fff;color:#173849;padding:10px 12px;font:inherit}
.beme-privacy-dialog button{border:1px solid #b9d5dd;border-radius:9px;background:#e9f6f6;color:#14555f;padding:10px 14px;font:600 13px/1.4 system-ui,sans-serif;cursor:pointer;white-space:normal}
.beme-privacy-dialog button:hover,.beme-privacy-dialog button:focus-visible{background:#147f87;color:#fff;border-color:#147f87}
.beme-privacy-dialog button:focus-visible,.beme-privacy-dialog select:focus-visible{outline:3px solid #42bdb3;outline-offset:3px}
.beme-privacy-dialog .beme-privacy-message{padding:0 24px;margin:14px 0;color:#476675;font-size:13px}
.beme-privacy-dialog [data-privacy-host]{padding:0 12px}
.beme-privacy-dialog iframe{display:block;width:100%;height:600px;border:1px solid #deeaef;border-radius:10px;background:#fff}
.beme-privacy-dialog .beme-privacy-help{padding:12px 24px 20px;margin:0;color:#536d79;font-size:12px}
.beme-privacy-dialog a{color:#087d85;text-decoration:underline}
#beme-protection-modal>div>div:last-child{flex-wrap:wrap}
#beme-protection-modal>div>div:last-child button{flex:1 1 170px;white-space:normal;line-height:1.5;min-height:46px}
@media(max-width:700px){.beme-dashboard .beme-explainer-steps{grid-template-columns:1fr;gap:18px}.beme-dashboard .beme-setup-explainer{padding:21px}.beme-privacy-overlay{padding:8px}.beme-privacy-dialog{max-height:calc(100dvh - 16px);border-radius:14px}.beme-privacy-dialog header{padding:16px}.beme-privacy-dialog h2{font-size:20px}.beme-privacy-toolbar{padding:14px 16px 0}.beme-privacy-toolbar label{flex-basis:100%}.beme-privacy-dialog .beme-privacy-message{padding:0 16px}.beme-privacy-dialog iframe{height:64dvh;min-height:360px}}
