/* Admin screens */
.hyperdrop-stats{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}
.hyperdrop-stat small{display:block;color:#646970;margin-top:2px}
.hyperdrop-dash-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:start}
@media(max-width:1100px){.hyperdrop-dash-grid{grid-template-columns:1fr}}
.hyperdrop-card{background:#fff;border:1px solid #dcdcde;border-radius:6px;padding:16px 18px;margin-bottom:20px}
.hyperdrop-card h2{margin:0 0 12px;font-size:15px}
.hyperdrop-card table.widefat{border:0;box-shadow:none}
.hyperdrop-steps li{margin-bottom:8px}.hyperdrop-steps .done{color:#0a5c2a}
.hyperdrop-quick .button{margin:0 6px 6px 0}
.hyperdrop-stat{background:#fff;border:1px solid #dcdcde;border-radius:6px;padding:12px 18px;min-width:120px}
.hyperdrop-stat strong{display:block;font-size:24px;line-height:1.2}
.hyperdrop-code{font-family:monospace;font-weight:600;letter-spacing:1px}
.hyperdrop-status{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;background:#f0f0f1}
.hyperdrop-status-active{background:#d1f0d9;color:#0a5c2a}
.hyperdrop-status-pending{background:#fff3cd;color:#7a5a00}
.hyperdrop-status-disabled{background:#f6d4d4;color:#8a1f1f}
.hyperdrop-actions form{display:inline}
.hyperdrop-actions .button-link{margin-right:8px}
.hyperdrop-limits{max-width:1100px}
.hyperdrop-limits td input[type=number]{width:90px}
.hyperdrop-limits th small{display:block;font-weight:400;color:#646970;margin-top:2px}
.hyperdrop-limits .hyperdrop-locked{color:#0a5c2a}.hyperdrop-limits .hyperdrop-open{color:#646970}
.hyperdrop-limits h2{margin-top:28px}

/* Drop products screen */
.hdp{max-width:1100px}
.hdp-title{display:flex;align-items:center;gap:10px;margin:18px 0 6px;font-size:18px}
.hdp-title .button{margin-left:4px}
.hdp-count{background:#2271b1;color:#fff;border-radius:10px;padding:1px 9px;font-size:12px}
.hdp-card{background:#fff;border:1px solid #dcdcde;border-radius:6px;padding:12px 14px;margin:10px 0 24px}
.hdp-tools{display:flex;gap:8px;margin-bottom:10px}
.hdp-search{flex:1;max-width:360px}
.hdp-scroll{max-height:460px;overflow:auto}
.hdp-thumb img{width:44px;height:44px;object-fit:cover;border-radius:4px}
.hdp-act{text-align:right;white-space:nowrap}
.hdp-remove{color:#b32d2e!important;text-decoration:none!important}
.hdp-empty{color:#646970;margin:6px 0}
.hdp tr[hidden]{display:none}

/* Setup wizard */
.hdw{max-width:860px;margin:20px auto 40px}
.hdw [hidden]{display:none!important}
.hdw-head{display:flex;align-items:center;justify-content:space-between}
.hdw-head h1{font-size:26px;margin:0}
.hdw-exit{text-decoration:none}
.hdw-progress{display:flex;gap:6px;list-style:none;margin:22px 0;padding:0;counter-reset:s}
.hdw-progress li{flex:1;margin:0;padding:10px 6px 0;border-top:4px solid #dcdcde;color:#646970;font-size:12px;display:flex;gap:6px;align-items:center}
.hdw-progress li span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#dcdcde;color:#fff;font-size:11px;font-weight:600;flex:none}
.hdw-progress li.is-done{border-color:#2271b1;color:#1d2327}.hdw-progress li.is-done span{background:#2271b1}
.hdw-progress li.is-current{border-color:#2271b1;color:#1d2327;font-weight:600}.hdw-progress li.is-current span{background:#2271b1}
#hdw-form{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:28px 32px}
.hdw-step h2{font-size:20px;margin:0 0 6px}
.hdw-sub{color:#646970;margin:0 0 18px}
.hdw-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0 20px}
@media(max-width:782px){.hdw-choices{grid-template-columns:1fr}}
.hdw-choice{position:relative;border:2px solid #dcdcde;border-radius:10px;padding:16px;cursor:pointer;display:flex;flex-direction:column;gap:6px;transition:border-color .15s,box-shadow .15s}
.hdw-choice:hover{border-color:#8c8f94}
.hdw-choice input{position:absolute;opacity:0}
.hdw-choice:has(input:checked){border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;background:#f0f6fc}
.hdw-choice:has(input:disabled){opacity:.45;cursor:not-allowed}
.hdw-ico{font-size:24px}
.hdw-choice small{color:#646970;line-height:1.4}
.hdw-field{margin:0 0 16px}
.hdw-field>label{display:block;font-weight:600;margin-bottom:6px}
.hdw-field input[type=number]{width:140px}
.hdw-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 24px}
@media(max-width:782px){.hdw-grid{grid-template-columns:1fr}}
.hdw-search{width:100%;margin:6px 0 10px;padding:6px 10px}
.hdw-products{max-height:380px;overflow:auto;border:1px solid #dcdcde;border-radius:8px}
.hdw-product{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #f0f0f1;cursor:pointer}
.hdw-product:last-child{border-bottom:0}
.hdw-product:hover{background:#f6f7f7}
.hdw-product:has(input:checked){background:#f0f6fc}
.hdw-product img{width:40px;height:40px;object-fit:cover;border-radius:4px}
.hdw-product span{display:flex;flex-direction:column}.hdw-product small{color:#646970}
.hdw-count{color:#646970;margin:8px 0 0}
.hdw-box{border:1px solid #dcdcde;border-radius:8px;padding:14px 16px;margin-bottom:12px}
.hdw-box .hdw-sub-fields{margin-top:12px}
.hdw-toggle small{color:#646970}
.hdw-review{display:grid;grid-template-columns:200px 1fr;gap:10px 16px;margin:8px 0 20px}
.hdw-review dt{font-weight:600;color:#646970}.hdw-review dd{margin:0}
.hdw-nav{display:flex;align-items:center;gap:12px;margin-top:26px;padding-top:18px;border-top:1px solid #f0f0f1}
.hdw-nav .hdw-next,.hdw-nav .hdw-launch{margin-left:auto}
.hdw-error{color:#b32d2e;font-weight:600}
.hdw-h3{margin:22px 0 10px;font-size:15px}
.hdw-choices-2{grid-template-columns:repeat(2,1fr)}
.hdw-choices-compact .hdw-choice{padding:12px 14px;gap:4px}
.hdw-ico-s{font-size:16px;margin-right:2px}
.hdw-when-box{background:#f6f7f7;border:1px solid #dcdcde;border-radius:8px;padding:14px 16px;margin-top:-8px}
.hdw-when-box>label{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.hdw-advanced{margin-top:22px;border:1px solid #dcdcde;border-radius:8px;background:#fff}
.hdw-advanced>summary{cursor:pointer;padding:12px 16px;font-weight:600;color:#2271b1;list-style:none;display:flex;align-items:center;gap:8px}
.hdw-advanced>summary::-webkit-details-marker{display:none}
.hdw-advanced>summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s;margin-right:4px}
.hdw-advanced[open]>summary::before{transform:rotate(45deg)}
.hdw-advanced>summary small{font-weight:400;color:#646970}
.hdw-advanced>summary:hover{background:#f6f7f7;border-radius:8px}
.hdw-advanced-body{padding:4px 16px 8px;border-top:1px solid #f0f0f1}
.hdw-advanced-body>div:first-child .hdw-h3{margin-top:12px}
.hdw-advanced-body.hdw-grid{padding-top:14px}
.hdw-inline{font-weight:600}
.hdw-when{margin:8px 0 0 24px}
.hdw-optional{font-weight:400;color:#646970}
.hdw-image-row{display:flex;gap:16px;align-items:center}
.hdw-image-preview{width:84px;height:84px;flex:none;border:1px dashed #c3c4c7;border-radius:8px;background:#f6f7f7;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}
.hdw-image-preview:has(img:not([hidden])){border-style:solid;border-color:#dcdcde}
.hdw-image-preview img{width:100%;height:100%;object-fit:cover}
.hdw-image-preview .dashicons{font-size:30px;width:30px;height:30px;color:#a7aaad}
.hdw-image-btns{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hdw-image-btns .hdw-image-remove{color:#b32d2e}
.hdw-image .description{margin:8px 0 0}
.hdw-done{text-align:center;padding:20px 10px}
.hdw-done .hdw-big{font-size:48px}
.hdw-done ul{display:inline-block;text-align:left;margin:16px auto}
.hdw-copy{display:flex;gap:8px;justify-content:center;margin:12px 0}
.hdw-copy code{padding:8px 12px;font-size:13px}
.hdw-actions .button{margin:4px}

/* Logo in page titles */
.hyperdrop-title{display:inline-flex;align-items:center;gap:10px}
.hyperdrop-title img{width:32px;height:32px;border-radius:7px}

/* Design tab */
.hyperdrop-design{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:32px;align-items:start;margin-top:16px}
@media (max-width:1100px){.hyperdrop-design{grid-template-columns:1fr}}
.hyperdrop-design-form h3{margin:24px 0 8px}
.hyperdrop-design-row{margin:0 0 14px}
.hyperdrop-design-row>label:first-child{display:block;font-weight:600;margin-bottom:6px}
.hyperdrop-design-row input[type=range]{width:100%}
.hyperdrop-design-row output{font-weight:400;color:#646970;margin-left:4px}
.hyperdrop-design-row label+label{margin-right:14px}
.hyperdrop-design-styles{display:flex;flex-wrap:wrap;gap:8px}
.hyperdrop-design-styles .description{flex-basis:100%}
.hyperdrop-style-pick{position:relative;cursor:pointer}
.hyperdrop-style-pick input{position:absolute;opacity:0}
.hyperdrop-style-pick span{display:inline-block;padding:8px 14px;border:2px solid #dcdcde;border-radius:8px;min-width:58px;text-align:center}
.hyperdrop-style-pick-dark span{background:#111;color:#fff}
.hyperdrop-style-pick-glass span{background:linear-gradient(135deg,#7f8c9d,#4b5563);color:#fff}
.hyperdrop-style-pick-light span{background:#fff}
.hyperdrop-style-pick input:checked+span{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1}
.hyperdrop-style-pick input:focus-visible+span{outline:2px solid #2271b1;outline-offset:2px}
.hyperdrop-design-preview{position:sticky;top:46px}
.hyperdrop-design-preview-label{font-weight:600;margin:0 0 8px;text-transform:uppercase;font-size:11px;letter-spacing:.5px;color:#646970}
.hyperdrop-design-stage{background:#f6f7f7 repeating-linear-gradient(45deg,transparent 0 10px,rgba(0,0,0,.015) 10px 20px);border:1px solid #dcdcde;border-radius:8px;padding:32px 20px;overflow:hidden;font-size:15px}
.hyperdrop-design-stage .hyperdrop-gate{max-width:var(--hd-width,560px);margin:0 auto}
.hyperdrop-design-stage .hyperdrop-gate-title{font-size:1.8em;line-height:1.2}
.hyperdrop-design-stage .hyperdrop-form input{padding:.6em .8em;border:1px solid #c3c4c7;border-radius:4px;background:#fff}
.hyperdrop-design-stage .hyperdrop-form button{padding:.6em 1.2em;border-radius:4px;border:1px solid #2271b1;background:#2271b1;color:#fff;cursor:default;font-weight:600}
.hyperdrop-design-stage .hyperdrop-form button:not(.alt){background:#fff;color:#2271b1}
.hyperdrop-pro-list{list-style:disc;margin-left:20px}.hyperdrop-pro-list li{margin:6px 0}

/* Wizard step 4: limits */
.hdw-step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.hdw-step-head .button{flex:none;margin-top:2px}
.hdw-preset-note{margin:-6px 0 14px;padding:8px 12px;background:#f0f6fc;border-left:3px solid #2271b1;border-radius:4px}
.hdw-limits{display:flex;flex-direction:column;gap:10px}
.hdw-advanced-body.hdw-limits{padding-top:14px;padding-bottom:14px}
.hdw-limit{display:flex;align-items:center;gap:14px;border:1px solid #dcdcde;border-radius:10px;padding:14px 16px;background:#fff;transition:border-color .15s,background .15s}
.hdw-limit.is-on{border-color:#2271b1;background:#f6faff}
.hdw-limit-ico{font-size:22px;width:28px;text-align:center;flex:none}
.hdw-limit-text{flex:1;display:flex;flex-direction:column;gap:2px;cursor:pointer;margin:0;font-weight:400}
.hdw-limit-text strong{font-size:14px;color:#1d2327}
.hdw-limit-text small{color:#646970;font-size:12.5px;line-height:1.4}
.hdw-limit-ctrl{display:flex;align-items:center;gap:14px;flex:none}
.hdw-nolimit{color:#646970;font-size:13px;min-width:126px;text-align:right}
.hdw-stepper{display:inline-flex;align-items:stretch;border:1px solid #8c8f94;border-radius:6px;overflow:hidden;background:#fff}
.hdw-stepper input[type=number]{width:62px!important;border:0!important;box-shadow:none!important;border-radius:0!important;text-align:center;font-weight:600;font-size:15px;margin:0;min-height:34px;-moz-appearance:textfield}
.hdw-stepper input::-webkit-outer-spin-button,.hdw-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hdw-step-btn{width:32px;border:0;background:#f6f7f7;color:#1d2327;font-size:16px;cursor:pointer;line-height:1}
.hdw-step-btn:hover{background:#e9ebec}
.hdw-switch{position:relative;display:inline-block;width:40px;height:22px;flex:none;cursor:pointer}
.hdw-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.hdw-switch-ui{position:absolute;inset:0;background:#c3c4c7;border-radius:22px;transition:background .15s}
.hdw-switch-ui::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.hdw-switch input:checked+.hdw-switch-ui{background:#2271b1}
.hdw-switch input:checked+.hdw-switch-ui::after{transform:translateX(18px)}
.hdw-switch input:focus-visible+.hdw-switch-ui{box-shadow:0 0 0 2px #fff,0 0 0 4px #2271b1}
@media(max-width:600px){.hdw-limit{flex-wrap:wrap}.hdw-limit-ctrl{width:100%;justify-content:flex-end}.hdw-step-head{flex-direction:column}}

/* Wizard step 5: codes */
.hdw-opts{display:flex;flex-direction:column;gap:10px}
.hdw-opts .hdw-box{margin:0;padding:0;border-radius:10px;transition:border-color .15s,background .15s}
.hdw-opts .hdw-box:has(.hdw-toggle input:checked){border-color:#2271b1;background:#f6faff;box-shadow:0 0 0 1px #2271b1}
.hdw-opts .hdw-toggle{display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;margin:0}
.hdw-opts .hdw-toggle input[type=checkbox]{margin:0;flex:none;width:20px;height:20px;border-radius:5px}
.hdw-opts .hdw-toggle input[type=checkbox]:checked::before{margin:-1px 0 0 -1px}
.hdw-opt-ico{font-size:22px;width:28px;text-align:center;flex:none}
.hdw-opt-text{display:flex;flex-direction:column;gap:2px}
.hdw-opt-text strong{font-size:14px;color:#1d2327}
.hdw-opt-text small,.hdw-opts .hdw-toggle small{color:#646970;font-size:12.5px;line-height:1.4}
.hdw-opts .hdw-sub-fields{margin:0;padding:4px 16px 14px 64px}
.hdw-code-input{display:flex;gap:8px;align-items:stretch}
.hdw-code-input .button{min-height:0}
.hdw-code-input input{flex:1;min-width:0;font-family:Menlo,Consolas,monospace;letter-spacing:.04em}
.hdw-vip-count{font-weight:600;color:#1d2327}
@media(max-width:600px){.hdw-opts .hdw-sub-fields{padding-left:16px}}

/* Wizard step 5: drop code card */
.hdw-codecard{display:grid;grid-template-columns:1fr 200px;gap:18px;border:2px solid #2271b1;background:#f6faff;border-radius:12px;padding:18px 20px}
.hdw-codecard label{display:block;font-weight:600;margin-bottom:6px}
.hdw-codecard .description{margin:6px 0 0}
.hdw-codecard input[type=text]{font-size:18px;font-weight:700;padding:6px 12px;min-height:44px}
.hdw-codecard input[type=number]{width:100%;min-height:44px;font-size:16px}
.hdw-codecard .button{min-height:44px}
.hdw-radio-row{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid #dcdcde}
.hdw-radio-row label{font-weight:500}
.hdw-big-code{font-size:18px!important;font-weight:700;letter-spacing:.06em}
@media(max-width:700px){.hdw-codecard{grid-template-columns:1fr}}
