/* Paint Me network UI. Only what Bootstrap 5.0.2 has no utility for; layout, spacing,
   flex and type helpers are Bootstrap classes in the markup. Colours, radii and fonts come
   from the theme variables. */
:root { --pm-gold: #c9a24b; --pm-sand: #f1e4d3; --pm-red: #c0262d; --pm-ink: #2a1a1c; --pm-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C20 3 38 9 58 6c22-3 40-4 62-2 20 2 40-2 60 0 8 1 14 2 16 4-10 2-22 0-34 1-24 2-46 4-70 2-22-2-44 2-66 1C16 12 6 11 2 7z'/%3E%3C/svg%3E"); }

/* Icons */
.pm-arrow { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.pm-pin { display: inline-block; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; background: var(--icon-place) center / contain no-repeat; vertical-align: -.2em; }

/* Buttons */
.pm-btn { display: inline-block; min-height: 44px; padding: .65rem 1.25rem; background: var(--main-dark-color); color: var(--main-light-color); border: 2px solid var(--main-dark-color); border-radius: var(--product-border-radius, .5rem); font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.pm-btn:hover, .pm-btn:focus-visible { background: var(--main-darker-color, #8a0c2a); border-color: var(--main-darker-color, #8a0c2a); color: var(--main-light-color); }
.pm-btn--gold { background: var(--pm-gold); border-color: var(--pm-gold); color: var(--pm-ink); }
.pm-btn--gold:hover, .pm-btn--gold:focus-visible { background: #b8913d; border-color: #b8913d; color: var(--pm-ink); }

/* Studio picker and studio rules: h2 without the theme's script font */
.modal-title.pop-title, .pm-rules__title { font-family: inherit; }

/* Old calendar cards (template-functions.php) */
.pm-event__label { bottom: .75rem; padding: .2rem .7rem; background: var(--pm-sand); color: var(--pm-ink); font-size: .8rem; }
.pm-seats--low { color: var(--pm-red); }

/* Waiting list */
.pm-waitlist { flex: 1 1 45%; }
.pm-waitlist summary { cursor: pointer; list-style: none; }
.pm-waitlist summary::-webkit-details-marker { display: none; }
.pm-closed { padding: .4rem .5rem; opacity: .7; cursor: default; }

/* Cart, checkout and the phone bars */
.pm-other-carts__note { background: var(--pm-sand); border-radius: .75rem; }
.pm-other-carts__note a, .pm-addcal a { color: var(--main-dark-color); font-weight: 700; }
.pm-order-studio { background: var(--product-background-color, #edeae5); border-radius: var(--product-border-radius, 8px); }
.pm-cartbar, .pm-bookbar { left: .75rem; right: .75rem; bottom: .75rem; z-index: 1500; padding: .5rem .5rem .5rem 1rem; border-radius: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.pm-cartbar { background: var(--pm-ink); }
.pm-bookbar { display: flex; background: var(--main-light-color, #fff); }
.pm-bookbar__price { font-weight: 800; color: var(--main-dark-color); }
.pm-bookbar__price del { margin-right: .35rem; color: var(--text-dark-color); font-size: .85rem; font-weight: 400; opacity: .65; }
.pm-bookbar__price ins { text-decoration: none; }
.pm-bookbar .product-button { min-height: 44px; padding: .55rem 1.5rem; }

/* Private parties */
.pm-radio { min-height: 44px; border-color: var(--border-color, #d9c8b4) !important; border-radius: .6rem; cursor: pointer; }
.pm-radio:has(input:checked) { border: 2px solid var(--main-dark-color) !important; }
@media (min-width: 576px) {
	.pm-party-studio { grid-template-columns: repeat(3, 1fr); }
	.pm-party-studio legend { grid-column: 1 / -1; }
}

/* Studio page map */
.pm-studio-info iframe { border-radius: var(--main-border-radius, 1rem); }

/* Header menu */
@media (min-width: 992px) {
	#primary-menu .navbar-nav > .nav-item > .nav-link { white-space: nowrap; }
}

/* Tabs: plain text in a row, the chosen one marked with a brush stroke */
.pm-tab { position: relative; min-height: 44px; padding: .4rem 1.75rem .7rem; background: none; border: 0; border-radius: 0; color: var(--text-dark-color); font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.pm-tab + .pm-tab::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; border-left: 1px solid currentColor; opacity: .35; }
.pm-tab:hover, .pm-tab:focus-visible, .pm-tab.is-active { color: var(--main-dark-color); }
.pm-tab.is-active { font-weight: 700; }
.pm-tab.is-active::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: .1rem; height: .55rem; background: var(--main-dark-color); -webkit-mask: var(--pm-brush) center / 100% 100% no-repeat; mask: var(--pm-brush) center / 100% 100% no-repeat; }

/* Event cards in Bootstrap columns (.row.g-3.pm-events) */
.pm-ev { background: var(--product-background-color, #edeae5); border-color: var(--border-color, #cfc9c3) !important; border-radius: var(--main-border-radius, 12px); will-change: transform; backface-visibility: hidden; transition: transform .5s ease-in-out, box-shadow .5s ease-in-out; }
/* Same hover as the theme's old event cards ([class*="product-row"] in cta.css). */
.pm-ev:hover { transform: scale(1.01); box-shadow: #0000001a 0 20px 25px -5px, #0000000a 0 10px 10px -5px; }
.pm-ev__media { aspect-ratio: 1 / 1; background: #fff; }
.pm-ev__media img { object-fit: cover; }
.pm-ev__date { top: .6rem; left: .6rem; z-index: 2; min-width: 3rem; padding: .35rem .5rem .3rem; background: var(--home-bg, #f2ede0); border-radius: var(--product-border-radius, 8px); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); color: var(--main-dark-color); font-size: 1.5rem; }
.pm-ev__date small { margin-top: .15rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.pm-ev__tags { top: .6rem; right: .6rem; z-index: 2; }
.pm-ev__sale { padding: .25rem .55rem; background: var(--cta-background, #d0ab66); border-radius: var(--product-border-radius, 8px); color: var(--pm-ink); font-size: .85rem; }
.pm-ev__label { bottom: 4%; min-width: 42%; height: 11.5%; padding: 0 .75rem; background: #e2dccf; border-radius: 0 var(--product-border-radius, 8px) var(--product-border-radius, 8px) 0; color: var(--pm-ink); font-size: .9rem; font-weight: 600; }
.pm-ev__body { padding: .85rem 1rem 1rem; }
.pm-ev__title { font-size: 1.05rem; }
.pm-ev__title a:hover, .pm-ev__title a:focus-visible { color: var(--main-dark-color) !important; }
.pm-ev__foot .price del { display: block; font-size: .8rem; font-weight: 400; opacity: .7; }
.pm-ev__foot .price ins { text-decoration: none; color: var(--main-dark-color); }
.pm-ev__foot .product-button { min-height: 44px; padding: .6rem 1.1rem; }
.pm-ev--all { background: var(--cta-background, linear-gradient(to bottom, #efda96, #d0ab66)); border-color: transparent !important; color: var(--pm-ink); }
.pm-ev__all-title { font-family: 'BerlinerInsScript', cursive; font-size: 2.25rem; line-height: 1.1; }
.pm-ev__all-go { width: 44px; height: 44px; background: var(--main-dark-color); color: var(--main-light-color); transition: transform .2s ease; }
.pm-ev--all:hover .pm-ev__all-go, .pm-ev--all:focus-visible .pm-ev__all-go { transform: translateX(4px); }

/* Status labels, as on Brush Party: faded "sold out", highlighted "limited seats" */
.pm-ev__status { padding: .25rem .65rem; border-radius: var(--product-border-radius, 8px); font-size: .8rem; line-height: 1.3; }
.pm-ev__status--limited { padding: .35rem .8rem; background: var(--cta-background, #e8c789); color: var(--pm-ink); font-size: .9rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transform-origin: right center; animation: pm-pump 1.5s ease-in-out infinite; }
/* 100% → 110% → 100%, every 1.5 s */
@keyframes pm-pump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pm-ev__status--soldout { background: var(--pm-ink); color: #fff; }
.pm-ev.is-limited { border: 3px solid #d0ab66 !important; }
.pm-ev.is-soldout .pm-ev__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .6); }
.pm-ev.is-soldout .pm-ev__body { opacity: .75; }

/* Calendar: period filter – outlined like "Научи повече", filled like "Запиши се" when chosen */
.pm-filter { min-height: 44px; padding: .45rem 1.1rem; background: transparent; border: 1px solid var(--main-dark-color); border-radius: var(--product-border-radius, 8px); color: var(--main-dark-color); font-size: .95rem; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.pm-filter:hover, .pm-filter:focus-visible, .pm-filter.is-active { background: var(--main-dark-color); color: var(--main-light-color); }
.pm-filter.is-active { font-weight: 700; }
@media (max-width: 575.98px) {
	.pm-tabs--links, .pm-period { flex-wrap: nowrap !important; justify-content: safe center !important; overflow-x: auto; }
	.pm-period { padding-bottom: .25rem; }
	.pm-tabs--links .pm-tab { padding: .4rem .9rem .7rem; font-size: 1rem; white-space: nowrap; }
	.pm-tabs--links .pm-tab.is-active::after { left: .6rem; right: .6rem; }
	.pm-filter { padding: .45rem .8rem; font-size: .9rem; }
}

/* Event page: price as a ticket – white ticket, perforated edge, the discount on the stub */
.event-ticket { border-radius: 10px; }
.event-ticket__main { min-width: 0; padding: .8rem 1.1rem .9rem; }
.event-ticket__label { color: #8a8478; font-size: .75rem; letter-spacing: .08em; }
.event-ticket__now { color: var(--main-dark-color); font-size: 2.35rem; font-weight: 800; line-height: 1.1; }
.event-ticket__was { color: #8a8478; font-size: 1.05rem; }
.event-ticket__stub { flex: 0 0 7rem; background: var(--main-dark-color); border-left: 2px dashed var(--product-background-color, #edeae5); border-radius: 0 10px 10px 0; color: var(--main-light-color, #fff); }
.event-ticket__stub::before, .event-ticket__stub::after { content: ""; position: absolute; left: -10px; width: 18px; height: 18px; background: var(--product-background-color, #edeae5); border-radius: 50%; }
.event-ticket__stub::before { top: -9px; }
.event-ticket__stub::after { bottom: -9px; }
.event-ticket__stub b { font-size: 1.6rem; line-height: 1; }
.event-ticket__stub span { font-size: .75rem; opacity: .9; }
@media (max-width: 575.98px) {
	.event-ticket__now { font-size: 2rem; }
	.event-ticket__stub { flex-basis: 5.5rem; }
	.event-ticket__stub b { font-size: 1.35rem; }
}
.event-book form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-top: .75rem; }
.event-book form.cart .product-button { flex: 1 1 12rem; min-height: 50px; margin-top: 0 !important; font-size: 1.1rem; font-weight: 700; }
.event-book .pm-addcal { font-size: .9rem; }
.event-book .pm-waitlist__form label { font-weight: 600; }
.event-book a.product-button.learn { min-height: 48px; padding: .75rem; }
/* Place, date, organiser, duration: a list (dl) with the look the headings had */
.event-facts dt { margin-left: 1.85rem; font-size: 1.25rem; font-weight: 400; }
.event-facts dt::before { content: ""; position: absolute; left: -2rem; width: 1.5rem; height: 1.5rem; background-repeat: no-repeat; }
.event-facts dt.place::before { background-image: var(--icon-place); }
.event-facts dt.date::before { background-image: var(--icon-date); }
.event-facts dt.host::before { background-image: var(--icon-host); }
.event-facts dt.time::before { background-image: var(--icon-time); }
.event-map { height: 200px; }

/* Event page, sold out: faded image and dark label as on the card, a clear notice instead of booking */
.main-image.is-soldout { position: relative; }
.main-image.is-soldout::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .55); border-radius: inherit; pointer-events: none; }
.event-soldout-tag { position: absolute; top: 1rem; right: 1rem; z-index: 2; padding: .4rem .9rem; font-size: 1rem; }
.event-book.is-soldout .event-ticket { opacity: .55; }
.event-book.is-soldout .event-ticket__stub { display: none !important; }
.event-soldout { background: var(--pm-ink); border-radius: var(--product-border-radius, 8px); }
.event-soldout__title { letter-spacing: .04em; }

/* Numbered steps in page content (center site) */
.pm-stepnum { display: block; margin-bottom: .35rem; color: var(--main-dark-color); font-size: 2rem; font-weight: 800; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
	.pm-ev, .pm-ev__all-go, .pm-filter { transition: none; }
	.pm-ev:hover { transform: none; }
	.pm-ev__status--limited { animation: none; }
}
.site-pop .text-none { text-transform: none; }
