.wplocation-admin{max-width:1280px;margin:28px 24px 32px 4px;color:#1d2939}
.wplocation-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:4px 0 22px}
.wplocation-admin .wplocation-display-title{font-size:30px;line-height:1.15;font-weight:650;letter-spacing:-.025em;color:#122238;padding:0}
.wplocation-heading p{margin:8px 0 0;color:#57677b;font-size:14px}
.wplocation-heading .wplocation-eyebrow,.wplocation-label{font-size:11px;letter-spacing:.1em;font-weight:700;color:#516a88;margin:0 0 10px}
.wplocation-admin .nav-tab-wrapper{display:flex;gap:4px;overflow-x:auto;white-space:nowrap}
.wplocation-admin .nav-tab{margin-left:0}
.wplocation-overview{padding-top:24px}
.wplocation-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wplocation-card,.wplocation-get-started{background:#fff;border:1px solid #dce4ed;border-radius:10px;padding:22px;box-shadow:0 2px 7px rgba(28,49,76,.04)}
.wplocation-card h2,.wplocation-get-started h2{margin:0 0 12px;font-size:18px;line-height:1.3;color:#17283e}
.wplocation-card p:not(.wplocation-label),.wplocation-get-started p:not(.wplocation-label){line-height:1.6;color:#536276}
.wplocation-card a{display:inline-block;font-weight:600;margin-top:4px;text-decoration:none}
.wplocation-card a:hover{text-decoration:underline}
.wplocation-status{display:inline-block;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:700;line-height:1.3}
.wplocation-status.is-ready{background:#e5f6ee;color:#14613c}.wplocation-status.needs-attention{background:#fff2db;color:#815000}
.wplocation-get-started{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:16px;background:#f8fbff}
.wplocation-get-started p:last-child{margin-bottom:0}.wplocation-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:250px}
.wplocation-note{color:#5c6a7a;font-size:12px;margin-top:18px}
.wplocation-admin pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.wplocation-admin input.regular-text{max-width:100%}
@media(max-width:782px){.wplocation-admin{margin-right:12px}.wplocation-heading{align-items:flex-start}.wplocation-card-grid{grid-template-columns:1fr}.wplocation-get-started{align-items:flex-start;flex-direction:column}.wplocation-actions{min-width:0;justify-content:flex-start}}

/* Admin workspace */
.wplocation-admin{--wpl-ink:#162b42;--wpl-muted:#5b6c7f;--wpl-line:#dce6ef;--wpl-blue:#11669a;max-width:1220px;margin-top:24px}
.wplocation-admin .wplocation-heading{border-radius:16px;background:linear-gradient(120deg,#0d2947,#15577c);padding:28px 32px;margin-bottom:18px;color:#fff;box-shadow:0 12px 30px rgba(14,41,70,.13)}
.wplocation-admin .wplocation-display-title{color:#fff;margin:0;font-size:32px}
.wplocation-admin .wplocation-heading p{color:#d5e9f4}
.wplocation-admin .wplocation-heading .notice p{color:#344b5c}
.wplocation-admin .wplocation-heading .wplocation-eyebrow{color:#a9e8ff;margin-bottom:8px}
.wplocation-admin .wplocation-heading .button-primary{background:#fff;border-color:#fff;color:#0e4e70;font-weight:650}
.wplocation-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:22px;padding:5px;background:#e9f0f5;border:1px solid #dce7ef;border-radius:12px}
.wplocation-tab{display:inline-flex;align-items:center;min-height:36px;padding:5px 13px;border-radius:8px;color:#375168;text-decoration:none;font-weight:600}
.wplocation-tab:hover,.wplocation-tab:focus{background:#fff;color:#11496d}.wplocation-tab.is-active{background:#fff;color:#0c527b;box-shadow:0 1px 4px rgba(26,51,75,.12)}
.wplocation-section-heading{margin:26px 0 18px}.wplocation-section-heading h2{font-size:26px;line-height:1.2;color:var(--wpl-ink);margin:0 0 6px}.wplocation-section-heading p{max-width:750px;color:var(--wpl-muted);margin:4px 0}.wplocation-section-heading .wplocation-label{color:#167399}
.wplocation-panel{background:#fff;border:1px solid var(--wpl-line);border-radius:14px;padding:24px 28px;margin:0 0 18px;box-shadow:0 3px 12px rgba(31,54,79,.035)}
.wplocation-panel h2{margin:0 0 9px;font-size:21px;color:var(--wpl-ink)}.wplocation-panel h3{margin:0 0 8px;font-size:18px;color:var(--wpl-ink)}.wplocation-panel h4{font-size:15px;color:var(--wpl-ink)}
.wplocation-panel p{max-width:900px;color:var(--wpl-muted);line-height:1.6}.wplocation-panel .wplocation-label{color:#167399;line-height:1.2}
.wplocation-panel label{font-weight:550;color:#233b50}.wplocation-panel input[type=text],.wplocation-panel input[type=password],.wplocation-panel input[type=search]{max-width:100%;min-height:38px;border-color:#b9cbd8;border-radius:7px}
.wplocation-panel .button{min-height:36px;border-radius:7px}.wplocation-panel form{margin:18px 0}.wplocation-panel .description{font-size:12px}
.wplocation-form{display:grid;grid-template-columns:minmax(160px,220px) minmax(230px,400px);align-items:center;gap:12px 18px}.wplocation-form p{grid-column:1/-1;margin:0}.wplocation-form input:not([type=checkbox]){width:100%}
.wplocation-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wplocation-health-grid .wplocation-panel{margin-bottom:18px}
.wplocation-facts{display:grid;grid-template-columns:max-content 1fr;gap:8px 15px;padding-top:9px}.wplocation-facts dt{color:#637487}.wplocation-facts dd{margin:0;font-weight:600;color:#1f3c52;overflow-wrap:anywhere}
.wplocation-inline-form{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.wplocation-inline-form input{min-width:200px;flex:1 1 230px;max-width:380px!important}.wplocation-inline-form label{min-width:max-content}
.wplocation-callout{background:#edf7fb;border-left:3px solid #2c82a8;padding:12px 15px;border-radius:5px}.wplocation-checklist{list-style:disc;padding-left:22px;color:var(--wpl-muted);line-height:1.65}.wplocation-checklist li{margin-bottom:8px}
.wplocation-table-scroll{overflow-x:auto;margin-top:16px}.wplocation-table-scroll table{min-width:520px;border:0;box-shadow:none}.wplocation-table-scroll th{padding:13px 12px;color:#53687c}.wplocation-table-scroll td{padding:14px 12px;vertical-align:middle}.wplocation-item-link{font-weight:650;text-decoration:none}.wplocation-result{display:inline-block;border-radius:20px;padding:3px 9px;font-size:12px;font-weight:650}.wplocation-result.is-ready{background:#e5f6ee;color:#14613c}.wplocation-result.needs-attention{background:#fff1dd;color:#815000}.wplocation-empty{padding:16px;background:#f5f9fc;border-radius:8px}
.wplocation-choice-field{border:0;padding:0;margin:0 0 24px}.wplocation-choice-field legend{font-size:15px;font-weight:700;margin-bottom:11px}.wplocation-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wplocation-choice{display:flex;gap:9px;align-items:center;border:1px solid var(--wpl-line);border-radius:9px;padding:13px 15px;cursor:pointer}.wplocation-choice:has(input:checked){border-color:#2e87b2;background:#f1f9fd}
.wplocation-country-picker>p{margin:5px 0 12px}.wplocation-country-picker>input{width:100%;max-width:400px!important;margin-bottom:12px}.wplocation-country-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 12px;max-height:320px;overflow:auto;border:1px solid var(--wpl-line);border-radius:9px;padding:10px}.wplocation-country-option{display:flex;align-items:center;gap:7px;padding:7px;border-radius:6px}.wplocation-country-option:hover{background:#f1f7fa}.wplocation-country-option[hidden]{display:none}
.wplocation-admin pre{background:#f2f7fa;border:1px solid #dce6ef;border-radius:8px;padding:14px 17px;color:#1b415b}
@media(max-width:782px){.wplocation-admin .wplocation-heading{padding:21px;flex-direction:column;align-items:flex-start}.wplocation-tabs{flex-wrap:nowrap;overflow-x:auto}.wplocation-tab{white-space:nowrap}.wplocation-panel{padding:20px}.wplocation-health-grid,.wplocation-choice-grid{grid-template-columns:1fr}.wplocation-country-options{grid-template-columns:repeat(2,minmax(0,1fr))}.wplocation-form{grid-template-columns:1fr;gap:8px}.wplocation-form p{grid-column:1}}
@media(max-width:480px){.wplocation-country-options{grid-template-columns:1fr}.wplocation-admin .wplocation-display-title{font-size:27px}}

.wplocation-source-summary{border-color:#9dccdf;background:linear-gradient(120deg,#f4fbfe,#fff)}
.wplocation-source-summary h2{font-size:24px}
.wplocation-source-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.wplocation-source-actions .button{margin:0}
#wplocation-source-file,#wplocation-source-maxmind{scroll-margin-top:50px}
.wplocation-addon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.wplocation-addon-card{margin:0;min-width:0}
.wplocation-addon-badge{display:inline-block!important;margin:0 0 13px!important;padding:5px 10px;border-radius:20px;background:#edf1f5;color:#42566a!important;font-size:12px;font-weight:700}
@media(max-width:782px){.wplocation-addon-grid{grid-template-columns:1fr}}

/* Rule editor: keep the audience decision visible and the long country list on demand. */
.wplocation-rule-heading{margin:22px 0 18px}.wplocation-rule-heading>a{display:inline-block;margin-bottom:16px;text-decoration:none;font-weight:600}.wplocation-rule-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.wplocation-rule-title h2{margin:0;font-size:28px;line-height:1.2;color:var(--wpl-ink)}.wplocation-rule-title p{margin:7px 0 0;color:var(--wpl-muted)}
.wplocation-rule-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:18px;align-items:start}.wplocation-rule-layout>div,.wplocation-rule-aside{min-width:0}.wplocation-rule-main{padding:28px 30px}.wplocation-rule-main form{margin:0}.wplocation-rule-step{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px}.wplocation-rule-step>span{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e5f4fb;color:#075a87;font-weight:700}.wplocation-rule-step h3{margin:1px 0 3px}.wplocation-rule-step p{margin:0}
.wplocation-rule-main .wplocation-choice-field{margin-bottom:28px}.wplocation-rule-main .wplocation-choice-grid{grid-template-columns:1fr}.wplocation-rule-main .wplocation-choice{padding:15px 17px;align-items:flex-start;gap:12px}.wplocation-rule-main .wplocation-choice input{margin-top:3px}.wplocation-rule-main .wplocation-choice strong,.wplocation-rule-main .wplocation-choice small{display:block}.wplocation-rule-main .wplocation-choice strong{font-size:14px}.wplocation-rule-main .wplocation-choice small{margin-top:3px;font-size:12px;line-height:1.5;color:var(--wpl-muted)}.wplocation-rule-main .wplocation-choice:focus-within{outline:2px solid #2271b1;outline-offset:2px}
.wplocation-country-picker{padding-top:22px;border-top:1px solid var(--wpl-line)}.wplocation-selection{background:#f4f8fb;border:1px solid var(--wpl-line);border-radius:9px;padding:13px 15px;margin-bottom:14px}.wplocation-selection>strong{display:block;font-size:12px;margin-bottom:8px}.wplocation-selected-countries{display:flex;flex-wrap:wrap;gap:6px}.wplocation-selection-empty{font-size:13px;color:var(--wpl-muted)}.wplocation-country-chip{border:1px solid #a9cbde;border-radius:20px;background:#eaf6fc;color:#124766;padding:5px 10px;cursor:pointer;font-size:12px;font-weight:600}.wplocation-country-chip:hover,.wplocation-country-chip:focus{background:#d8edf8}.wplocation-country-search{display:flex;gap:8px}.wplocation-country-search input{flex:1 1 auto;min-width:0;width:100%;margin:0!important}.wplocation-country-search .button{flex:none}.wplocation-country-count{margin:8px 0!important;font-size:12px}.wplocation-rule-main .wplocation-country-options{grid-template-columns:repeat(2,minmax(0,1fr));max-height:235px}.wplocation-rule-main .wplocation-country-option{min-width:0;font-size:13px}.wplocation-rule-main .wplocation-country-option span{overflow-wrap:anywhere}.wplocation-rule-save{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid var(--wpl-line)}.wplocation-rule-save span{font-size:12px;color:var(--wpl-muted)}.wplocation-rule-validation{color:#a32626!important;font-weight:600}
.wplocation-rule-summary{background:#f2f9fd;border-color:#c7e4f2}.wplocation-rule-summary #wplocation-audience-summary{font-size:17px;font-weight:650;line-height:1.45;color:#0d4769;margin:14px 0}.wplocation-rule-unknown{font-size:12px;border-top:1px solid #d8e8f0;padding-top:12px}.wplocation-category-rules{margin:12px 0 0}.wplocation-category-rules li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--wpl-line)}.wplocation-category-rules span{color:var(--wpl-muted);font-size:12px;text-align:right}.wplocation-test-result{border-radius:8px;padding:12px 14px}.wplocation-test-result.is-visible{background:#e5f6ee;color:#14613c}.wplocation-test-result.is-hidden{background:#fff1dd;color:#815000}
.wplocation-rule-main [hidden]{display:none!important}
.wplocation-rule-layout .wplocation-inline-form select{min-height:38px;min-width:0;width:100%;flex:1 1 230px;max-width:100%;border-color:#b9cbd8;border-radius:7px}
@media(max-width:1050px){.wplocation-rule-layout{grid-template-columns:1fr}.wplocation-rule-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wplocation-rule-aside .wplocation-panel{margin:0}}
@media(max-width:782px){.wplocation-rule-title{align-items:flex-start;flex-direction:column}.wplocation-rule-aside{grid-template-columns:1fr}.wplocation-rule-main{padding:20px}.wplocation-rule-main .wplocation-country-options{grid-template-columns:1fr}}
