/* Chord Ideas Plugin Store v41.17: theme-aware preview, no payment unless enabled server-side. */
.ci-store-overlay[hidden]{display:none!important}
.ci-store-overlay{position:fixed;inset:0;z-index:99995;background:rgba(20,16,28,.68);display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}
.ci-store-open{overflow:hidden}
.ci-store-dialog,.ci-guest-dialog{--ci-fg:#f7f4fb;--ci-bg:#22202c;--ci-card:#302c3b;--ci-edge:#554b62;--ci-muted:#c2b8cb;color:var(--ci-fg);background:var(--ci-bg);border:1px solid var(--ci-edge);box-shadow:0 28px 70px #0006;border-radius:21px;max-width:850px;width:100%;max-height:min(90vh,1000px);display:flex;flex-direction:column;overflow:hidden}
html[data-theme="light"] .ci-store-dialog,html[data-theme="light"] .ci-guest-dialog{--ci-fg:#3c3042;--ci-bg:#fffafd;--ci-card:#f5ebf3;--ci-edge:#dac9dd;--ci-muted:#716477}
.ci-store-header{display:flex;gap:20px;justify-content:space-between;align-items:start;padding:26px 28px 16px}
.ci-store-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:750;color:#b48dbd}
.ci-store-header h2{font-size:clamp(23px,4vw,30px);margin:6px 0;font-weight:800;color:var(--ci-fg)}
.ci-store-header p,.ci-store-footer,.ci-product-info p,.ci-product-info small,.ci-owned-row p,.ci-owned-row small{color:var(--ci-muted)}
.ci-store-close{flex-shrink:0;background:var(--ci-card);color:var(--ci-fg);border:1px solid var(--ci-edge);border-radius:12px;font-size:27px;width:40px;height:40px;cursor:pointer}
.ci-store-tabs{display:flex;gap:8px;padding:0 28px 16px;border-bottom:1px solid var(--ci-edge)}
.ci-store-tabs button{border:1px solid var(--ci-edge);border-radius:12px;padding:10px 20px;background:var(--ci-card);color:var(--ci-fg);font-weight:700;cursor:pointer}
.ci-store-tabs button.active{background:#925a86;color:#fff;border-color:#925a86}
.ci-store-main{padding:18px 28px;min-height:210px;overflow-y:auto}
.ci-store-status{margin-bottom:14px;color:var(--ci-muted);font-size:13px}.ci-store-status:empty{display:none}.ci-store-status.ci-error{color:#e88d94}
.ci-store-products{display:grid;gap:11px}.ci-product-card{background:var(--ci-card);border:1px solid var(--ci-edge);border-radius:15px;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px}
.ci-product-icon{border-radius:13px;display:flex;justify-content:center;align-items:center;background:rgba(170,126,157,.22);font-size:27px;width:52px;height:52px}
.ci-product-info h3{color:var(--ci-fg);font-size:16px;margin:0 0 4px}.ci-product-info p{margin:0 0 4px;font-size:13px}.ci-product-info small{font-size:11px}
.ci-product-actions{display:flex;align-items:center;flex-direction:column;gap:7px}.ci-product-actions strong{font-size:17px}.ci-buy-btn,.ci-store-primary,.ci-claim-form button{cursor:pointer;border:0;background:#94537e;color:white;border-radius:10px;padding:10px 16px;font-weight:700}.ci-buy-btn:disabled,.ci-claim-form button:disabled{opacity:.5;cursor:not-allowed}
.ci-store-footer{padding:15px 28px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ci-edge);gap:12px;font-size:12px}.ci-store-footer button,.ci-guest-actions>button:not(.ci-store-primary){background:var(--ci-card);color:var(--ci-fg);border:1px solid var(--ci-edge);border-radius:10px;padding:10px 16px;cursor:pointer}
.ci-store-mine>p{color:var(--ci-muted);line-height:1.6}.ci-owned-row{border:1px solid var(--ci-edge);background:var(--ci-card);border-radius:12px;margin-bottom:9px;padding:14px;display:flex;flex-direction:column;gap:4px}.ci-owned-row p{margin:0;font-size:12px}.ci-claim-form{margin-top:24px;padding:16px;background:var(--ci-card);border-radius:13px;display:grid;gap:12px}.ci-claim-form h3{font-size:16px;margin:0}.ci-claim-form label{font-size:12px;display:grid;gap:5px}.ci-claim-form input{border:1px solid var(--ci-edge);background:var(--ci-bg);color:var(--ci-fg);border-radius:8px;padding:11px}.ci-claim-form p{color:var(--ci-muted);font-size:12px;line-height:1.5;margin:0}
.ci-guest-dialog{max-width:520px;padding:26px;gap:14px;overflow:auto}.ci-guest-dialog h2{font-size:23px;color:var(--ci-fg);margin:0}.ci-guest-dialog p{color:var(--ci-muted);line-height:1.55;margin:0}.ci-guest-dialog ul{list-style:disc;padding:16px 20px 16px 36px;background:var(--ci-card);border-radius:12px;margin:0;display:grid;gap:13px;font-size:13px;line-height:1.45}.ci-guest-assurance{font-size:13px}.ci-guest-actions{display:grid;gap:9px}.ci-guest-actions>button{min-height:42px}
.ci-myplugins-entry{white-space:nowrap}
@media(max-width:640px){.ci-store-overlay{padding:9px}.ci-store-dialog{max-height:96vh}.ci-store-header,.ci-store-main,.ci-store-footer{padding-left:14px;padding-right:14px}.ci-store-tabs{padding-left:14px;padding-right:14px}.ci-product-card{grid-template-columns:42px minmax(0,1fr);gap:10px}.ci-product-icon{width:42px;height:42px}.ci-product-actions{grid-column:2;justify-content:flex-end;flex-direction:row}.ci-myplugins-entry span{display:none}}

.ci-owned-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ci-owned-actions button{border:1px solid var(--ci-edge);border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700;cursor:pointer}.ci-owned-actions button:not(.ci-store-primary){background:var(--ci-bg);color:var(--ci-fg)}.ci-owned-actions button:disabled{opacity:.48;cursor:not-allowed}

/* v41.20: Full-window, page-like plugin storefront. */
.ci-store-overlay{padding:0;align-items:stretch;background:var(--ci-bg,#1e1b27);overflow:hidden}
.ci-store-dialog{border-radius:0;border:0;max-width:none;max-height:100dvh;height:100dvh;width:100%;box-shadow:none}
.ci-store-header,.ci-store-tabs,.ci-store-main,.ci-store-footer{width:100%;padding-left:max(22px,calc((100vw - 1140px)/2));padding-right:max(22px,calc((100vw - 1140px)/2))}
.ci-store-header{padding-top:30px;padding-bottom:19px}.ci-store-header h2{font-size:clamp(26px,4vw,40px)}
.ci-store-main{flex:1;min-height:0;overflow-y:auto;padding-top:25px;padding-bottom:28px}
.ci-store-products{gap:17px}.ci-product-card{align-items:start;grid-template-columns:56px minmax(0,1fr) minmax(110px,auto);padding:21px;gap:20px}
.ci-product-info h3{font-size:19px}.ci-product-info p{font-size:14px}.ci-product-info small{font-size:12px}
.ci-product-detail-toggle{background:transparent;color:var(--ci-fg);border:1px solid var(--ci-edge);padding:8px 12px;border-radius:9px;font-weight:700;cursor:pointer;margin:12px 0 4px}
.ci-product-explain{line-height:1.55;color:var(--ci-muted);font-size:13px}.ci-product-explain[hidden]{display:none!important}
.ci-product-explain h4{margin:12px 0 4px;color:var(--ci-fg);font-size:13px}
.ci-product-explain p{margin:3px 0 9px;line-height:1.6}
.ci-product-explain ul{margin:3px 0 9px;padding-left:19px}.ci-product-explain li{margin:3px 0}
.ci-store-intro{border:1px solid var(--ci-edge);background:var(--ci-card);border-radius:16px;padding:18px 21px;margin-bottom:20px;color:var(--ci-fg)}
.ci-store-intro h3{margin:0 0 7px;font-size:17px}.ci-store-intro p{color:var(--ci-muted);font-size:13px;line-height:1.65;margin:0}
.ci-store-support{margin-top:24px;border:1px solid var(--ci-edge);background:var(--ci-card);border-radius:16px;padding:20px;line-height:1.55;color:var(--ci-fg)}
.ci-store-support a{color:#e2a4d0;text-decoration:underline;text-underline-offset:3px}
html[data-theme="light"] .ci-store-support a{color:#854267}
.ci-store-support p{margin:6px 0;color:var(--ci-muted);font-size:13px}
.ci-store-footer{flex-shrink:0}.ci-store-back{font-size:13px!important;width:auto!important;white-space:nowrap;padding:9px 14px!important}
@media(max-width:640px){.ci-store-header,.ci-store-tabs,.ci-store-main,.ci-store-footer{padding-left:15px;padding-right:15px}.ci-store-header{padding-top:20px}.ci-store-overlay{padding:0}.ci-store-dialog{max-height:100dvh;height:100dvh}.ci-product-card{grid-template-columns:45px minmax(0,1fr);gap:10px;padding:15px}.ci-product-actions{grid-column:2;flex-direction:row;justify-content:flex-start}.ci-product-info h3{font-size:16px}.ci-store-footer{flex-wrap:wrap}.ci-store-header h2{font-size:25px}}

.ci-product-info>small{display:block;margin:6px 0 4px}.ci-product-detail-toggle{display:inline-flex;margin-top:8px}

/* Chord Ideas Open Sale presentation; storefront checkout remains gated by existing settings. */
.ci-product-price{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:92px}
.ci-product-price>strong{color:var(--ci-fg);font-size:19px;line-height:1.15}
.ci-product-sale-label{display:inline-block;border:1px solid #bf83ae;background:rgba(191,131,174,.16);color:#f2b7de;border-radius:999px;padding:4px 8px;font-size:10px;letter-spacing:.08em;font-weight:800;white-space:nowrap}
html[data-theme="light"] .ci-product-sale-label{color:#80355e;background:#f8e3f0;border-color:#c78daf}
.ci-product-original-price{font-size:12px;text-decoration:line-through;color:var(--ci-muted)}
@media(max-width:640px){.ci-product-price{min-width:0;align-items:flex-start}}
