/*
 * KA Tickets public component. Shared by the shortcode, the WPBakery element and the editor preview.
 * The heading inherits the theme's h3 (as the KA Live Database SETLIST heading does). Text colour is
 * inherited from the page so it works on Noisa's light and dark backgrounds.
 */
.kat { --kat-pink: #f43b65; --kat-pink-dark: #d8264f; margin: 1.5em 0; container-type: inline-size; }
.kat[hidden] { display: none !important; }
.kat .kat-heading { text-transform: uppercase; margin-bottom: .6em; }
.kat p { margin: 0 0 .5em; }
.kat .kat-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Notices */
.kat .kat-notice { padding: .5em .75em; border-left: 4px solid var(--kat-pink); font-weight: 600; }

/* Pre-sales: one heading per on-sale moment, then compact rows "name | agent | arrow" */
.kat .kat-presales { margin: 0 0 1.25em; }
.kat .kat-subheading { margin: 0 0 .5em !important; padding: 0 !important; font-size: .8em !important; line-height: 1.4 !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.kat .kat-presale-date { margin: 0 0 .9em; }
.kat .kat-presale-date__when { margin: 0 0 .2em !important; font-weight: 700; }
.kat .kat-presale-list { list-style: none !important; margin: 0 !important; padding: 0 !important; max-width: 640px; /* same as the button grid */ }
.kat .kat-presale { margin: 0 !important; padding: .15em 0 !important; background: none !important; }
.kat .kat-presale::before { content: none !important; }
.kat .kat-presale__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "name agents more"; column-gap: .75em; align-items: center; min-height: 28px; }
.kat .kat-presale__name { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.kat .kat-presale__agents { grid-area: agents; min-width: 0; text-align: right; overflow-wrap: anywhere; font-size: .95em; }
.kat .kat-presale__more { grid-area: more; display: flex; justify-content: center; }
.kat .kat-presale__more .kat-toggle { margin: 0; }
.kat .kat-presale .kat-desc { margin: .15em 0 .4em; }
.kat .kat-presale .kat-code { margin: .1em 0 .35em; font-size: .95em; }
@container (max-width: 260px) {
	.kat .kat-presale__row { grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "name more" "agents agents"; }
	.kat .kat-presale__agents { text-align: left; }
}
.kat .kat-presale__agents a, .kat .kat-notes a, .kat .kat-desc a { color: var(--kat-pink); text-decoration: underline; }
.kat .kat-local { opacity: .8; }

/* Expandable details: a small arrow button */
.kat .kat-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 28px; margin: 0 0 0 .25em; padding: 0; vertical-align: middle; background: transparent; border: 1px solid transparent; border-radius: 4px; color: inherit; cursor: pointer; line-height: 1; box-shadow: none; }
.kat .kat-toggle:hover { border-color: currentColor; }
.kat .kat-toggle__icon { display: block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; transition: transform .15s ease; }
.kat .kat-toggle[aria-expanded="true"] .kat-toggle__icon { transform: rotate(90deg); }
.kat .kat-desc { margin: .25em 0 .75em; padding: .5em .75em; border-left: 2px solid rgba(128, 128, 128, .5); font-size: .95em; }
.kat .kat-desc p { margin: 0 0 .4em; }

/* Pre-sale code */
.kat .kat-code { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin: .25em 0 .5em; }
.kat .kat-code__value { font-size: 1em; padding: .15em .45em; border: 1px dashed currentColor; border-radius: 3px; background: transparent; color: inherit; letter-spacing: .05em; }
.kat .kat-code__reveal, .kat .kat-code__copy { min-height: 32px; padding: .25em .75em; font-size: .9em; line-height: 1.2; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 4px; cursor: pointer; box-shadow: none; text-transform: none; }
.kat .kat-code__reveal:hover, .kat .kat-code__copy:hover { border-color: var(--kat-pink); color: var(--kat-pink); }
.kat .kat-code__status { font-size: .9em; }

/* General sale and purchasing buttons: equal-width two-column grid, one column when narrow */
.kat .kat-general { margin: 0 0 1.25em; }
.kat .kat-general__group { margin: 0 0 1em; }
.kat .kat-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: .5em 0 0; max-width: 640px; }
.kat .kat-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 10px 16px; border: 2px solid var(--kat-pink); border-radius: 4px; background: var(--kat-pink); color: #fff !important; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none !important; overflow-wrap: anywhere; word-break: normal; transition: background-color .15s ease, border-color .15s ease; }
.kat a.kat-btn:hover { background: var(--kat-pink-dark); border-color: var(--kat-pink-dark); color: #fff !important; }
.kat a.kat-btn:focus-visible, .kat .kat-toggle:focus-visible, .kat .kat-code__reveal:focus-visible, .kat .kat-code__copy:focus-visible, .kat a:focus-visible { outline: 3px solid var(--kat-pink); outline-offset: 3px; }
.kat .kat-btn--plain { background: transparent; color: inherit !important; border: 1px solid rgba(128, 128, 128, .7); font-weight: 400; }
@container (max-width: 479px) { .kat .kat-buttons { grid-template-columns: minmax(0, 1fr); } }
@supports not (container-type: inline-size) { @media (max-width: 599px) { .kat .kat-buttons { grid-template-columns: minmax(0, 1fr); } } }

/* Prices and notes */
.kat .kat-prices__list { list-style: none !important; margin: 0 0 1em !important; padding: 0 !important; }
.kat .kat-price { margin: 0 0 .3em !important; padding: 0 !important; background: none !important; }
.kat .kat-price::before { content: none !important; }
.kat .kat-price__name { font-weight: 600; }
.kat .kat-price__fee { opacity: .85; }
.kat .kat-notes { font-size: .95em; }

/* Without JavaScript: show details and codes, hide the controls that need script */
.kat-nojs .kat-desc[hidden] { display: block !important; }
.kat-nojs .kat-code__value[hidden] { display: inline !important; }
.kat-nojs .kat-toggle, .kat-nojs .kat-code__reveal, .kat-nojs .kat-code__copy { display: none !important; }
