/* R43 · scoped purchase views. Controller and server own all payment decisions. */
/* Keep the close mark independent of inline SVG baselines and browser text metrics. */
.product-body .phone .bottom-sheet.drama-unlock-sheet #closeSheet {display:grid;place-items:center;box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;line-height:1;}
.product-body .phone .bottom-sheet.drama-unlock-sheet #closeSheet>span {display:grid;place-items:center;width:24px;height:24px;line-height:0;}
.product-body .phone .bottom-sheet.drama-unlock-sheet #closeSheet svg {display:block;width:24px;height:24px;margin:0;}
.drama-access-view {--access-gold:#e8ca90;--access-muted:#aaa49c;--access-line:#ffffff14;--access-surface:#202023;min-width:0;width:100%;color:#f5f2eb;font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;}
.product-body .phone .bottom-sheet:has(.drama-access-view) {padding:0;border-radius:24px 24px 0 0;background:#151517;border:1px solid #ffffff1c;border-bottom:0;max-height:min(90dvh,780px);overflow:hidden;}
.product-body .phone .bottom-sheet:has(.drama-access-view)>.sheet-body {padding:0;min-width:0;scrollbar-width:thin;scrollbar-color:#666 #171719;}
.product-body .phone .bottom-sheet:has(.drama-access-view)>header {padding:10px 16px;min-height:60px;margin:0;gap:12px;}
.product-body .phone .bottom-sheet:has(.drama-access-view)>header h2 {margin:0;font-size:18px;line-height:1.4;letter-spacing:0;}
.product-body .phone .bottom-sheet:has(.drama-access-view)>header small {display:none;}
.product-body .phone .bottom-sheet:has(.drama-access-view)>header .icon-button {display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:#ffffff0a;color:#e8e5df;border:1px solid #ffffff12;}
.product-body .phone .bottom-sheet:has(.drama-access-vip) {left:50%;right:auto;translate:-50% 0;width:min(400px,calc(100% - 32px));bottom:max(68px,calc(60px + env(safe-area-inset-bottom,0px)));max-height:min(720px,calc(100dvh - 108px));border-radius:20px;border:1px solid #ac88454d;overflow:visible;background:#111114;}
.product-body .phone .bottom-sheet:has(.drama-access-vip)>.sheet-body {border-radius:20px;overflow-y:auto;}
.product-body .phone .bottom-sheet:has(.drama-access-vip)>header {position:absolute;inset:auto auto -56px 50%;translate:-50% 0;z-index:3;min-height:44px;padding:0;}
.product-body .phone .bottom-sheet:has(.drama-access-vip)>header>div {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.product-body .phone .bottom-sheet:has(.drama-access-vip)>header .icon-button {width:44px;height:44px;flex-basis:44px;border-radius:50%;background:#151517b8;color:#fff;border-color:#ffffff70;backdrop-filter:blur(6px);}
.product-body .phone .bottom-sheet:has(.drama-access-vip)>header #closeSheet {width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px;}
.drama-access-view :is(h2,h3,p) {margin:0;letter-spacing:0;}
.product-body .phone .drama-access-view p {font-size:12px;line-height:1.65;color:var(--access-muted);}
.drama-access-view :is(button,strong,span,div) {min-width:0;}
.drama-access-view button {touch-action:manipulation;white-space:normal;overflow-wrap:anywhere;word-break:normal;letter-spacing:0;}
.drama-access-view button:focus-visible {outline:2px solid #f6dfab;outline-offset:3px;}
.drama-access-view button:disabled {opacity:.42;cursor:not-allowed;}
.drama-access-view:not(.drama-access-vip):not(.drama-access-coins) {padding:16px;}
.drama-access-view>button {min-height:44px;margin:10px 8px 0 0;padding:10px 14px;border:1px solid #ffffff20;border-radius:11px;color:#e6cf9e;font-size:13px;line-height:1.6;}
.drama-access-vip {background:linear-gradient(180deg,#171514,#111114);}
.drama-access-vip-banner {display:block;width:100%;height:auto;aspect-ratio:665/350;object-fit:contain;}
.drama-access-vip-body {padding:20px 20px max(10px,env(safe-area-inset-bottom,0px));text-align:center;}
.drama-access-eyebrow {display:block;color:#b7a78b;font-size:11px;line-height:1.5;overflow-wrap:anywhere;}
.product-body .phone .drama-access-vip h2 {font-size:20px;font-weight:650;line-height:1.4;margin:7px 0 8px;color:#f3dba9;}
.product-body .phone .drama-access-vip .drama-access-vip-description {max-width:30em;margin:0 auto;color:#c2b7a5;font-size:13px;line-height:1.7;}
.drama-access-perks {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0 16px;}
.drama-access-perk {display:flex;align-items:center;flex-direction:column;gap:9px;min-width:0;color:#e2d0ac;font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
.drama-access-perk-icon {display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:1px solid #b995504d;background:radial-gradient(circle at 35% 20%,#7a612b33,#25211b 75%);color:#edce8f;box-shadow:inset 0 1px #ffe8a714;}
.drama-access-perk-icon svg {width:27px;height:27px;}
.drama-access-vip-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 12px;}
.drama-access-view .drama-access-vip-actions>button {border-radius:999px;}
.drama-access-view .drama-access-vip-actions>.drama-access-secondary {border-color:#b799665e;background:#161515;color:#dfc38e;}
.drama-access-view :is(.drama-access-primary,.drama-access-secondary) {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;min-height:48px;padding:11px 14px;border-radius:12px;font-size:14px;font-weight:600;line-height:1.5;text-align:center;}
.drama-access-view .drama-access-primary {background:linear-gradient(110deg,#f2d99f,#dcb36b);border:1px solid #e5c080;color:#332414;box-shadow:0 4px 16px #0002;}
.drama-access-view .drama-access-secondary {background:#29292c;border:1px solid #ffffff18;color:#e5e2dc;}
.drama-access-primary>svg {width:17px;height:17px;flex:0 0 17px;}
.drama-access-view .drama-access-text {min-height:40px;padding:8px;color:#b4a58c;font-size:12px;}
.drama-access-coin-body {padding:2px 16px 0;}
.drama-access-work {display:grid;grid-template-columns:76px minmax(0,1fr);gap:13px;align-items:start;margin:4px 0 17px;}
.drama-access-poster {display:block;width:76px;height:105px;object-fit:cover;border-radius:9px;background:#24242a;border:1px solid #ffffff12;}
.drama-access-poster-placeholder {display:grid;place-items:center;color:#a9a3b2;}
.drama-access-poster-placeholder svg {width:28px;height:28px;}
.product-body .phone .drama-access-work h3 {font-size:17px;line-height:1.45;margin:0 0 6px;overflow-wrap:anywhere;color:#f6f3ed;font-weight:600;}
.product-body .phone .drama-access-view .drama-access-synopsis {font-size:12px;line-height:1.6;color:#a7a4a2;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.drama-access-episode {display:inline-block;font-size:12px;line-height:1.5;color:#e5c589;background:#b6904f15;border:1px solid #b6904f35;border-radius:5px;padding:2px 7px;}
.drama-access-bulk-offer {border:1px solid #d2ac6c88;border-radius:13px;background:linear-gradient(125deg,#3a302063,#251e1744);padding:14px;margin-bottom:12px;}
.drama-access-offer-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
.product-body .phone .drama-access-offer-heading h3 {font-size:16px;line-height:1.5;color:#eed4a2;font-weight:600;}
.drama-access-discount {flex-shrink:0;border-radius:4px;padding:2px 7px;font-size:12px;line-height:1.6;color:#382812;background:#ebc57c;}
.product-body .phone .drama-access-view .drama-access-scope {font-size:11px;line-height:1.6;margin:7px 0 12px;color:#b6ab97;}
.drama-access-offer-price {display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.drama-access-original {font-size:12px;color:#9f9688;line-height:1.6;}
.drama-access-original s {margin-left:3px;text-decoration-thickness:1px;}
.drama-access-total {display:flex;align-items:baseline;justify-content:flex-end;gap:7px;margin-left:auto;color:#efd5a2;}
.drama-access-total small {font-size:11px;color:#b8a78c;}
.drama-access-total strong {font-size:24px;line-height:1.35;font-weight:650;overflow-wrap:anywhere;}
.drama-access-single-line {display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:9px 1px 13px;border-bottom:1px solid var(--access-line);color:#c1bdb7;font-size:13px;}
.drama-access-single-line strong {font-size:15px;line-height:1.5;color:#e5e0d8;font-weight:550;text-align:right;overflow-wrap:anywhere;}
.drama-access-balance {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 9px;}
.drama-access-balance>span {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:12px;color:#a6a29c;}
.drama-access-balance strong {font-size:14px;line-height:1.5;color:#e2d6be;font-weight:550;overflow-wrap:anywhere;}
.drama-access-view .drama-access-topup {display:flex;align-items:center;justify-content:center;gap:2px;min-height:40px;min-width:64px;padding:8px 0 8px 8px;color:#ecd098;font-size:13px;line-height:1.5;flex-shrink:0;}
.drama-access-topup svg {width:14px;height:14px;flex:0 0 14px;}
.product-body .phone .drama-access-view .drama-access-permanent {display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.65;color:#99958e;margin:0 0 10px;}
.drama-access-permanent>svg {width:15px;height:15px;flex:0 0 15px;margin-top:2px;color:#b6a17b;}
.product-body .phone .drama-access-view .drama-access-status {margin:0;min-height:0;font-size:12px;line-height:1.65;color:#e6b6a0;overflow-wrap:anywhere;}
.product-body .phone .drama-access-view .drama-access-status.has-status {margin:10px 0 6px;}
.drama-access-view .drama-access-requote {min-height:40px;padding:8px 0;font-size:12px;line-height:1.6;color:#efcea0;}
.drama-access-actions {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px;padding:12px 16px max(18px,env(safe-area-inset-bottom,0px));position:sticky;bottom:0;z-index:1;background:#151517;border-top:1px solid #ffffff0a;}
.drama-access-actions button {flex-direction:column;gap:2px;}
.drama-access-actions button>strong {font-size:12px;line-height:1.5;font-weight:500;overflow-wrap:anywhere;}
.drama-access-actions.single-only {grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);}
/* Do not let inherited/global energy decoration enter a purchase action. */
.drama-access-view [data-energy=off]>.energy-fx,.drama-access-view [data-energy=off]>.energy-bolt {display:none!important;}
.drama-access-view [data-energy=off]::before,.drama-access-view [data-energy=off]::after {content:none!important;display:none!important;animation:none!important;}
@media(max-width:350px) {
 .drama-access-vip-body {padding:16px 14px 8px;}
 .drama-access-perks {gap:6px;margin-block:18px 12px;}
 .drama-access-perk-icon {width:46px;height:46px;}
 .drama-access-perk {font-size:11px;gap:7px;}
 .drama-access-coin-body {padding-inline:14px;}
 .drama-access-work {grid-template-columns:65px minmax(0,1fr);gap:11px;margin-bottom:14px;}
 .drama-access-poster {width:65px;height:94px;}
 .product-body .phone .drama-access-work h3 {font-size:16px;}
 .drama-access-bulk-offer {padding:12px;}
 .drama-access-total strong {font-size:22px;}
 .drama-access-actions {padding-inline:14px;gap:8px;}
 .drama-access-view :is(.drama-access-primary,.drama-access-secondary) {font-size:13px;padding-inline:10px;}
}
@media(min-width:1024px) {
 .product-body .phone .bottom-sheet:has(.drama-access-view) {width:min(560px,calc(100% - 48px));}
 .product-body .phone .bottom-sheet:has(.drama-access-vip) {width:min(500px,calc(100% - 48px));}
 .drama-access-vip-body {padding-inline:26px;}
 .drama-access-coin-body {padding-inline:22px;}
 .drama-access-work {grid-template-columns:85px minmax(0,1fr);gap:15px;}
 .drama-access-poster {width:85px;height:116px;}
 .drama-access-actions {padding-inline:22px;}
}

/* Short screens keep the close target inside the sheet, above the scroll content. */
@media(max-height:620px) {
 .product-body .phone .bottom-sheet:has(.drama-access-vip) {left:50%;right:auto;translate:-50% 0;width:min(500px,100%);bottom:0;max-height:92dvh;border-radius:22px 22px 0 0;overflow:hidden;}
 .product-body .phone .bottom-sheet:has(.drama-access-vip)>.sheet-body {border-radius:22px 22px 0 0;}
 .product-body .phone .bottom-sheet:has(.drama-access-vip)>header {inset:10px 10px auto auto;translate:none;}
 .drama-access-vip-body {padding-bottom:max(12px,env(safe-area-inset-bottom,0px));}
}

/* Purchase settings only: retain native checkboxes inside full-row touch targets. */
.console-body .drama-purchase-admin fieldset {min-width:0;width:100%;margin:16px 0;padding:16px;border:1px solid var(--console-border,#22333f);border-radius:12px;background:var(--console-card,#0e1820);}
.console-body .drama-purchase-admin .field:has(>span>input[type=checkbox]) {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;min-height:44px;width:100%;margin:6px 0;padding:6px 8px;border-radius:8px;cursor:pointer;}
.console-body .drama-purchase-admin .field>span:has(>input[type=checkbox]) {display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:1;min-width:0;width:100%;text-align:left;line-height:1.6;}
.console-body .drama-purchase-admin .field>span>span[data-ui-dynamic] {min-width:0;overflow-wrap:anywhere;}
.console-body .drama-purchase-admin input[type=checkbox] {appearance:auto;display:inline-block;flex:0 0 18px;align-self:center;box-sizing:border-box;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;margin:0;padding:0;border-radius:3px;accent-color:var(--console-accent,#56c1d0);vertical-align:middle;}
@media(max-width:480px) {.console-body .drama-purchase-admin fieldset {padding:12px;}}

/* R44 · quote feedback mounts immediately; no invented amount or heavy artwork. */
.product-body .phone .drama-access-view[data-drama-purchase-session] {padding:0;}
.product-body .phone .drama-access-view.drama-access-loading {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:190px;padding:24px 20px;text-align:center;}
.drama-access-loading-icon {display:grid;place-items:center;width:36px;height:36px;color:#e8ca90;}
.drama-access-loading-icon>svg {width:32px;height:32px;animation:drama-quote-loading-spin 1s linear infinite;}
.product-body .phone .drama-access-loading>p {font-size:14px;line-height:1.65;margin:0;color:#d0c6b5;}
.product-body .phone .drama-access-loading>button {min-width:140px;min-height:44px;margin:0;font-size:13px;}
@keyframes drama-quote-loading-spin {to{transform:rotate(1turn);}}
@media(prefers-reduced-motion:reduce) {.drama-access-loading-icon>svg {animation:none;}}
