/* One in-flow location surface and disclosure pattern for commercial Plinko pages. */
.wyl-location-flow{padding-block:36px}
.wyl-location{width:100%;max-width:42rem;margin:0;padding:10px 14px;border:1px solid var(--color-border-purple);border-radius:var(--radius-md);background:var(--color-surface-soft);color:var(--color-text);font-size:14px;line-height:1.5;text-align:left}
.wyl-location p{margin:8px 0;color:var(--color-muted)}
.wyl-location summary{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;min-height:40px;cursor:pointer;list-style:none}
.wyl-location summary::-webkit-details-marker{display:none}
.wyl-location__country{min-width:0;overflow-wrap:anywhere}
.wyl-location__change{flex-shrink:0;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--color-secondary)}
.wyl-location__form{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:end;margin:10px 0 0}
.wyl-location label{display:flex;flex-direction:column;gap:5px;flex:1 1 180px;min-width:0}
.wyl-location select{width:100%;max-width:100%;min-height:44px;background-color:var(--color-bg);color:var(--color-text);border:1px solid var(--color-border);border-radius:8px;padding:10px;font:inherit}
.wyl-location .button{flex:0 0 auto;min-height:44px;font-size:14px;white-space:nowrap}
.wyl-location small{display:block;color:var(--color-muted);font-size:12px;line-height:1.4}
.wyl-location__form>small,.wyl-location__form>noscript{flex-basis:100%}
.wyl-location [hidden]{display:none!important}
.wyl-location :focus-visible,.wyl-affiliate-disclosure summary:focus-visible{outline:3px solid var(--color-primary);outline-offset:3px}
.wyl-location .wyl-location__empty-title{margin:0 0 6px;font-size:clamp(1.1rem,2vw,1.3rem);line-height:1.3;letter-spacing:-.02em}
.wyl-location[data-state="empty"] .wyl-location__editor[open]>summary{display:none}
.wyl-location__status p{margin:4px 0 10px}
.wyl-location[data-state="empty"] .wyl-location__form{margin-top:0}
/* Match each page's existing prose column, independent of open/closed state. */
.real-money-page .wyl-location{max-width:48rem}
.stake-hero__copy .wyl-location{max-width:none}
.real-money-page>.wyl-location-flow+.rm-games,.real-money-page>.wyl-location-flow+.rm-section{padding-top:0}
.casino-directory__heading:has(+.wyl-location-flow){padding-bottom:0}
.casino-directory__heading:has(+.wyl-location-flow)>.casino-directory__lede{margin-bottom:0}
.casino-directory>.wyl-location-flow+.casino-directory__content{padding-top:0}
.casino-directory>.wyl-location-flow+.casino-directory__content>section:first-child>h2{margin-top:0}
.casino-directory__notices:has(>.wyl-location-flow){gap:0;margin-bottom:0}
.wyl-catalog-title{margin:0 0 8px;font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.25}
.stake-hero__grid:has(.wyl-location-flow){row-gap:0}
.wyl-affiliate-disclosure{max-width:42rem;margin:0;color:var(--color-muted);font-size:12px;line-height:1.5;text-align:left}
.wyl-affiliate-disclosure summary{display:flex;align-items:center;gap:6px;min-height:28px;width:fit-content;padding:0;list-style:none;cursor:pointer;font-weight:400;color:var(--color-muted)}
.wyl-affiliate-disclosure summary::-webkit-details-marker{display:none}
.wyl-affiliate-disclosure summary::after{content:'';width:6px;height:6px;flex:0 0 6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:3px}
.wyl-affiliate-disclosure[open] summary::after{transform:translateY(2px) rotate(225deg)}
.wyl-affiliate-disclosure p{margin:4px 0 0;color:var(--color-muted)}
.rm-hero>.wyl-affiliate-disclosure,.stake-hero__copy>.wyl-affiliate-disclosure{margin-top:16px}
@media(min-width:1024px){.real-money-page .wyl-location{max-width:66%}}
@media(max-width:768px){
 .wyl-location{padding:10px 12px}
 .wyl-location summary{flex-wrap:wrap;gap:4px 16px}
 .wyl-location .wyl-location__form>label,.wyl-location .wyl-location__form>.button{flex-basis:100%;width:100%}
}

/* Shared utility row, with full-column panels beneath both controls. */
.wyl-page-utilities{max-width:42rem}
.real-money-page .wyl-page-utilities{max-width:48rem}
.wyl-page-utilities>.wyl-location{max-width:none}
.wyl-page-utilities:has([data-state="results"]){position:relative;padding-top:44px}
.wyl-page-utilities:has([data-state="results"])>.wyl-affiliate-disclosure{max-width:none}
.wyl-page-utilities:has([data-state="results"])>.wyl-affiliate-disclosure>summary,
.wyl-page-utilities .wyl-location[data-state="results"] summary{position:absolute;top:0;min-height:44px;max-width:160px;margin:0;padding:0;display:flex;flex-wrap:nowrap;gap:7px;font-size:13px;font-weight:400;line-height:1.5;color:var(--color-muted)}
.wyl-page-utilities:has([data-state="results"])>.wyl-affiliate-disclosure>summary{left:0;width:160px}
.wyl-page-utilities .wyl-location[data-state="results"] summary{left:176px;right:auto;max-width:calc(100% - 176px);justify-content:flex-start}
.wyl-location[data-state="results"]{padding:0;border:0;border-radius:0;background:transparent}
.wyl-location__pin{flex:0 0 16px;color:currentColor}
.wyl-location__label{display:none}
.wyl-location__country{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wyl-location__country strong{font-weight:400}
.wyl-location__change{display:flex;align-items:center;gap:7px;font-weight:400;text-decoration:none;color:inherit}
.wyl-location__change::after{content:'';width:6px;height:6px;flex:0 0 6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);margin:0 3px}
.wyl-location__editor[open] .wyl-location__change::after{transform:translateY(2px) rotate(225deg)}
.wyl-page-utilities summary:hover,.wyl-page-utilities summary:focus-visible{color:var(--color-text)}
.wyl-page-utilities .wyl-location[data-state="results"] .wyl-location__panel,
.wyl-page-utilities:has([data-state="results"])>.wyl-affiliate-disclosure>p{margin:8px 0 0;padding:16px;border:1px solid var(--color-border-purple);border-radius:var(--radius-md);background:var(--color-surface-soft);font-size:14px;line-height:1.5}
.wyl-location .wyl-location__selection{margin:0 0 12px;font-size:13px}
.wyl-location-flow:has(.wyl-location[data-state="results"]){margin-block:0;padding-block:10px 8px}
.wyl-page-utilities>.wyl-affiliate-disclosure:has(+.wyl-location:not([data-state="results"])){margin-bottom:12px}
@media(min-width:1024px){.real-money-page .wyl-page-utilities{max-width:66%}}
@media(max-width:768px){
 .wyl-page-utilities .wyl-location[data-state="results"] .wyl-location__panel,
 .wyl-page-utilities:has([data-state="results"])>.wyl-affiliate-disclosure>p{padding:14px}
}

/* Keep the utility controls together, with matching lightweight icons. */
.wyl-affiliate-disclosure__icon{flex:0 0 16px}
.wyl-affiliate-disclosure summary{font-size:13px;gap:7px}
.wyl-page-utilities:not(:has(>.wyl-affiliate-disclosure)) .wyl-location[data-state="results"] summary{left:0;max-width:100%}
.rm-hero:has(+.wyl-location-flow [data-state="results"])>.rm-lede{margin-bottom:0}
@media(max-width:768px){
 .wyl-page-utilities .wyl-location[data-state="results"] summary{left:172px;max-width:calc(100% - 172px)}
}

/* Give expanded utility panels space before the following content. */
.wyl-location-flow:has(.wyl-location[data-state="results"]):has(.wyl-location__editor[open],.wyl-affiliate-disclosure[open]){padding-bottom:24px}


/* Utilities own their spacing; adjacent headings must not add a second gap. */
body:has(.plinko-subnav) header.plinko-page-heading:has(+.wyl-location-flow){margin-bottom:0}
body:has(.plinko-subnav) header.plinko-page-heading:has(+.wyl-location-flow)>p:last-child{margin-bottom:0}
.wyl-location-flow:has(.wyl-page-utilities .wyl-affiliate-disclosure){margin-block:0;padding-block:8px}
.wyl-location-flow:has(.wyl-page-utilities .wyl-affiliate-disclosure):has(.wyl-location__editor[open],.wyl-affiliate-disclosure[open]){padding-bottom:24px}
