/* Pupasana Yoga Studio — Public Styles */
:root {
    --pys-brand:  #C1A78C;
    --pys-dark:   #333;
    --pys-light:  #fdf9f5;
    --pys-radius: 12px;
    --pys-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ---- Events List ---- */
.pys-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}
.pys-event-card { background: #fff; border-radius: var(--pys-radius); box-shadow: var(--pys-shadow); overflow: hidden; }
.pys-event-img { height: 250px; overflow: hidden; }
.pys-event-img img { width: 100%; height: 200px; object-fit: cover; display: block; height: 100% !important; }
.pys-event-body  { padding: 16px; }
.pys-event-body h3 { margin: 0 0 8px; font-size: 18px; }
.pys-event-meta { margin: 4px 0; font-size: 14px; color: #555; }
.pys-event-price { margin: 10px 0; font-size: 18px; }

/* ---- Booking ---- */
.pys-booking-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.pys-booking-location-header { background: var(--pys-brand); color: #fff; padding: 20px; border-radius: var(--pys-radius); margin-bottom: 20px; }
.pys-booking-location-header h1 { margin: 0; }
.pys-booking-container { display: flex; gap: 3%; align-items: flex-start; }
/* Swiper gallery */
.pys-gallery-side { width: 53%; flex-shrink: 0; position: sticky; top: 20px; }
.pys-form-side     { width: 44%; }
.pys-gallery-swiper { width: 100%; border-radius: 10px 10px 0 0; overflow: hidden; }
.pys-gallery-swiper .swiper-slide { aspect-ratio: 4/3; background: #f5f0ea; }
.pys-gallery-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Gallery grid layout */
.pys-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pys-gallery-grid-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; }
.pys-gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Coverflow needs overflow visible */
.pys-swiper-coverflow { overflow: hidden !important; }
.pys-swiper-coverflow .swiper-slide { width: 80% !important; }
/* Controls bar below swipers */
.pys-swiper-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 8px 12px;
    background: #1d1d1d; border-radius: 0 0 10px 10px;
}
.pys-ctrl-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--pys-brand); border: none;
    color: #fff; font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 1; padding: 0;
    transition: background .2s; font-family: 'FontAwesome'; margin-top: 0px !important;
}
.pys-ctrl-btn:hover { background: #a68b72; }
.pys-ctrl-spacer { flex: 1; }
.pys-ctrl-pagination {
    display: flex; gap: 5px; align-items: center; justify-content: center;
    flex: 1; flex-wrap: wrap; min-height: 14px;
}
.pys-ctrl-pagination .swiper-pagination-bullet {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.35); opacity: 1; margin: 0; cursor: pointer;
    transition: background .2s, width .2s, border-radius .2s; padding: 15px !important;
}
.pys-ctrl-pagination .swiper-pagination-bullet-active {
    background: #fff; width: 20px; border-radius: 4px;
}
.pys-form-side { display: flex; flex-direction: column; gap: 20px; }
.pys-form-side h2 { margin: 0; font-size: 26px; }
.pys-pricing { font-size: 20px; margin: 0; }
.pys-form-section { display: flex; flex-direction: column; gap: 8px; }
.pys-form-section label { font-weight: 600; }
.pys-form-section select {
    padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px;
    font-size: 15px; width: 100%; max-width: 300px;
}

/* Tile grid (yoga type / location) */
.pys-tile-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pys-tile-box {
    border: 2px solid #eee; border-radius: 10px; padding: 10px;
    text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
    background: #fafafa; min-width: 120px;
}
.pys-tile-box img      { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.pys-tile-title        { font-size: 13px; font-weight: 600; margin-top: 4px; }
.pys-tile-box:hover,
.pys-tile-box.selected { border-color: var(--pys-brand) !important; background: #fdf8f4 !important; outline: none; }

/* Slot buttons */
.pys-slot-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pys-slot-buttons .pys-slot-btn {
    padding: 10px 16px; border: 2px solid #ddd; border-radius: 8px;
    background: #fff !important; cursor: pointer; font-size: 14px; font-weight: 600;
    transition: all .2s; color: #333 !important; box-shadow: none !important;
}
.pys-slot-buttons .pys-slot-btn:hover { border-color: var(--pys-brand); }
.pys-slot-buttons .pys-slot-btn.active { background: var(--pys-brand) !important; color: #fff !important; border-color: var(--pys-brand); }
.pys-slot-buttons .pys-slot-btn.pys-slot-full { opacity: .7; cursor: not-allowed; background: #f5f5f5 !important; }
.pys-sold-out-label { display:block; font-size:11px; font-weight:700; color:#c00; line-height:1.2; margin-top:3px; }
.pys-tickets-left  { display:block; font-size:11px; font-weight:700; color:#d97706; line-height:1.2; margin-top:3px; }

/* Participants */
.pys-participants-row { display: flex; align-items: center; gap: 10px; }
.pys-part-btn {
    width: 36px; height: 36px; border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    font-size: 20px !important;
    cursor: pointer;
    line-height: 1;
    margin: 0px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0px 20px 0 24px !important;
    font-family: 'Elsie' !important;
    text-align: right !important;
}
.pys-part-btn:hover { background: #f0f0f0; }

/* Benefits */
.pys-benefits { background: var(--pys-light); padding: 16px; border-radius: 10px; }
.pys-benefits h3 { margin: 0 0 10px; }
.pys-benefits ul { margin: 0; padding-left: 18px; }
.pys-benefits li { margin-bottom: 6px; }

/* Breed announcement */
.pys-breed-announcement { text-align: center; margin-top: 24px; }
.pys-breed-text { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.pys-breed-img { max-width: 100%; border-radius: 10px; height: auto; }
/* Breed Swiper */
.pys-breed-swiper { width: 100%; max-width: 480px; margin: 12px auto 0; border-radius: 10px 10px 0 0; overflow: hidden; }
.pys-breed-swiper .swiper-slide { aspect-ratio: 4/3; background: #f5f0ea; }
.pys-breed-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block; }
.pys-breed-announcement .pys-swiper-controls { max-width: 480px; margin: 0 auto; }

/* Accordions */
.pys-accordions { margin-top: 24px; }
.pys-accordion {
    background: #f5f0ea; color: #444; cursor: pointer;
    padding: 15px 18px; width: 100%;
    border: 1px solid #e4dbd0; border-radius: 8px; margin-bottom: 6px;
    text-align: left; font-size: 15px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    transition: background .2s, color .2s;
}
.pys-accordion::after {
    content: '+';
    font-size: 22px; font-weight: 400; line-height: 1;
    color: var(--pys-brand);
    transition: transform .25s;
    flex-shrink: 0; margin-left: 12px;
}
.pys-accordion.active { background: var(--pys-brand); color: #fff; border-color: var(--pys-brand); }
.pys-accordion.active::after { content: '−'; color: #fff; }
.pys-accordion:hover:not(.active) { background: #ede5da; }
.pys-panel {
    padding: 14px 18px; display: none;
    background: #fff; border: 1px solid #e4dbd0; border-top: none;
    border-radius: 0 0 8px 8px; margin-top: -6px; margin-bottom: 6px;
}

/* ---- Auth ---- */
.pys-auth-wrap {
    max-width: 440px; margin: 0 auto; padding: 30px;
    background: #fff; border-radius: var(--pys-radius); box-shadow: var(--pys-shadow);
}
.pys-auth-wrap h2 { text-align: center; margin-bottom: 20px; }
.pys-auth-tabs { display: flex; margin-bottom: 16px; border-bottom: 2px solid #eee; }
.pys-auth-tab { background: none; border: none; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: #888; }
.pys-auth-tab.active { color: var(--pys-brand); border-bottom: 2px solid var(--pys-brand); margin-bottom: -2px; }

/* ---- Choose Login ---- */
.pys-choose-login-wrap { max-width: 900px; margin: 0 auto; padding: 24px; }
.pys-choose-login-wrap h2 { text-align: center; margin-bottom: 8px; }
.pys-choose-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.pys-choose-card {
    background: #fff; border: 1px solid #e5e5e5; border-radius: var(--pys-radius);
    padding: 24px; box-shadow: var(--pys-shadow);
}
.pys-choose-card h3 { margin: 0 0 8px; }

/* ---- Confirm Details ---- */
.pys-confirm-wrap { max-width: 680px; margin: 0 auto; padding: 24px; background: #fff; border-radius: var(--pys-radius); box-shadow: var(--pys-shadow); }
.pys-confirm-wrap h2 { text-align: center; margin-bottom: 16px; }
.pys-confirm-auth-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 16px; background:#f9f6f2; border:1px solid #ecddd0; border-radius:8px; margin-bottom:16px; font-size:14px; }
.pys-confirm-auth-bar .pys-btn { padding:6px 14px; font-size:13px; }
.pys-summary { background: #fafafa; border: 1px solid #e5e5e5; border-radius: 10px; padding: 14px; margin-bottom: 20px; font-size: 15px; }
.pys-summary p { margin: 4px 0; }
.pys-total-row { display: flex; justify-content: space-between; margin: 4px 0; }
.pys-total-bold { font-weight: 700; }
.pys-confirm-form { display: grid; gap: 14px; }
.pys-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Shared field */
.pys-field { display: flex; flex-direction: column; gap: 5px; }
.pys-field label { font-weight: 600; font-size: 14px; }
.pys-field input, .pys-field select, .pys-confirm-form input, .pys-confirm-form select, .pys-auth-wrap input {
    padding: 11px 12px; border: 1px solid #ccc; border-radius: 8px;
    font-size: 15px; background: #fff; width: 100%; box-sizing: border-box;
    transition: border-color .15s;
}
.pys-field input:focus, .pys-confirm-form input:focus, .pys-auth-wrap input:focus,
.pys-confirm-form select:focus, .pys-field select:focus {
    border-color: var(--pys-brand); outline: none;
    box-shadow: 0 0 0 3px rgba(193,167,140,.2);
}

/* ---- Dashboard ---- */
.pys-dashboard-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.pys-dashboard-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--pys-brand); color: #fff; padding: 14px 20px; border-radius: var(--pys-radius); margin-bottom: 20px; }
.pys-table-wrap { overflow-x: auto; }
.pys-table { width: 100%; border-collapse: collapse; background: #fff; }
.pys-table th, .pys-table td { padding: 10px 12px; border: 1px solid #ddd; font-size: 14px; }
.pys-table th { background: var(--pys-brand); color: #fff; }

/* ---- Thank You ---- */
.pys-thankyou-wrap { max-width: 700px; margin: 30px auto; padding: 30px; text-align: center; background: #fff; border-radius: var(--pys-radius); box-shadow: var(--pys-shadow); }
.pys-thankyou-icon { font-size: 64px; margin-bottom: 10px; }
.pys-booking-summary-card { text-align: left; margin-top: 24px; background: #fafafa; border-radius: 10px; padding: 20px; }
.pys-booking-summary-card h3 { margin: 0 0 14px; }
.pys-summary-table { width: 100%; border-collapse: collapse; }
.pys-summary-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; }

/* ---- Verify QR ---- */
.pys-verify-wrap { max-width: 600px; margin: 30px auto; padding: 24px; }
.pys-verify-details { margin-top: 20px; background: #fff; padding: 20px; border-radius: 10px; box-shadow: var(--pys-shadow); }

/* ---- Notices ---- */
.pys-notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 16px; }
.pys-notice-success { background: #e6ffed; border: 1px solid #38a169; color: #256c3e; }
.pys-notice-error   { background: #fff5f5; border: 1px solid #fc8181; color: #9b2c2c; }
.pys-notice-warning { background: #fffbea; border: 1px solid #f6ad55; color: #7b341e; }

/* ---- Buttons ---- */
.pys-btn {
    display: inline-block; padding: 12px 24px; background: var(--pys-brand); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: background .2s, transform .1s; line-height: 1;
}
.pys-btn:hover      { background: #a68b72; color: #fff; }
.pys-btn:active     { transform: scale(.98); }
.pys-btn-secondary  { background: #555; }
.pys-btn-secondary:hover { background: #333; }
.pys-btn-ghost      { background: #fff; color: var(--pys-brand); border: 2px solid var(--pys-brand); }
.pys-btn-ghost:hover{ background: var(--pys-brand); color: #fff; }
.pys-btn-danger     { background: #e53e3e; }
.pys-btn-danger:hover{ background: #c53030; }
.pys-btn-sm         { padding: 6px 14px; font-size: 13px; }
.pys-btn-pay        { background: #28a745; font-size: 17px; }
.pys-btn-pay:hover  { background: #218838; }

/* ---- Modal (for booking iframe) ---- */
.pys-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.6);
    display: flex; align-items: flex-start; justify-content: center; padding: 16px;
}
.pys-modal-card {
    background: #fff; width: 95%; max-width: 900px; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; max-height: calc(100dvh - 32px); height: 100vh;
}
.pys-modal-head  { padding: 10px 14px; text-align: right; border-bottom: 1px solid #eee; }
.pys-modal-close { background: #c1a78c; border: none; border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.pys-modal-frame { width: 100%; border: 0; display: block; flex: 1; overflow-y: auto; }

/* ---- Modal iframe — strip theme chrome ---- */
/* When a page is loaded inside the booking modal (pys_modal=1), hide everything
   except the plugin content: header, footer, fixed overlays, and breadcrumbs all go. */
body.pys-in-modal #header-wrapper,
body.pys-in-modal #footer,
body.pys-in-modal .site-header,
body.pys-in-modal .site-footer,
body.pys-in-modal nav.navbar,
body.pys-in-modal .breadcrumb-wrap {
    display: none !important;
}
/* Hide any fixed/sticky elements (floating social menus, back-to-top buttons, etc.) */
body.pys-in-modal *[style*="position:fixed"],
body.pys-in-modal *[style*="position: fixed"] {
    display: none !important;
}
body.pys-in-modal .elementor-element[data-element_type="section"][style*="fixed"],
body.pys-in-modal .e-con[style*="fixed"] {
    display: none !important;
}
/* Remove excess spacing so content fills cleanly */
body.pys-in-modal .wrapper,
body.pys-in-modal .inner-wrapper,
body.pys-in-modal #main,
body.pys-in-modal .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.pys-in-modal {
    background: #fff;
}

/* ---- Gift Card Page ---- */
.pys-gc-wrap {     max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.pys-gc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pys-gc-visual-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.pys-gc-card-art {
    width: 100%; max-width: 100%;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, #e8d9c8 0%, #c1a78c 55%, #a68b72 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 0 20px;
    box-sizing: border-box;
}
.pys-gc-card-art::before {
    content: '';
    position: absolute; top: -50px; right: -50px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.12); border-radius: 50%;
}
.pys-gc-card-art::after {
    content: '';
    position: absolute; bottom: -30px; left: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.08); border-radius: 50%;
}
.pys-gc-logo { max-width: 130px; max-height: 65px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 10px; position: relative; z-index: 1; }
.pys-gc-brand-text { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; text-align: center; position: relative; z-index: 1; }
.pys-gc-card-label { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-align: center; position: relative; z-index: 1; }
.pys-gc-amount-badge {
    position: absolute; bottom: 18px; right: 18px; z-index: 1;
    background: rgba(255,255,255,.22); color: #fff;
    border: 1px solid rgba(255,255,255,.45); border-radius: 8px;
    padding: 4px 14px; font-size: 22px; font-weight: 700;
}
.pys-gc-visual-caption { color: #888; font-size: 13px; text-align: center; }
.pys-gc-custom-img { width: 100%; max-width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.15); display: block; }
.pys-gc-extra-text { font-size: 14px; color: #555; margin: 25px 0 12px; line-height: 1.6; }

.pys-gc-form-col h2 { margin: 0 0 8px; }
.pys-gc-desc { color: #555; margin-bottom: 20px; }

.pys-gc-denom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pys-gc-denom-btn, .pys-gc-type-btn, .pys-gc-qty-btn {
    padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 15px; font-weight: 600;
    color: #333; transition: border-color .15s, background .15s;
}
.pys-gc-denom-btn { padding: 10px 4px; }
.pys-gc-denom-btn:hover, .pys-gc-type-btn:hover, .pys-gc-qty-btn:hover { border-color: var(--pys-brand); }
.pys-gc-denom-btn.selected, .pys-gc-type-btn.selected, .pys-gc-qty-btn.selected {
    border: 2px solid var(--pys-brand) !important; background: #fdf8f4; color: var(--pys-brand);
}

.pys-gc-benefits { background: var(--pys-light); border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: 14px; }
.pys-gc-benefits ul { margin: 4px 0 0; padding-left: 0; list-style: none; }
.pys-gc-benefits li { margin-bottom: 4px; }

.pys-gc-purchased { max-width: 500px; margin: 40px auto; text-align: center; background: #fff; padding: 32px; border-radius: var(--pys-radius); box-shadow: var(--pys-shadow); }

/* ---- Gift Card Redemption at Checkout ---- */
.pys-gc-redeem-wrap { margin: 16px 0; }
.pys-gc-toggle-btn {
    background: none; border: 1px dashed var(--pys-brand); border-radius: 8px;
    color: var(--pys-brand); font-size: 14px; font-weight: 600; padding: 8px 16px;
    cursor: pointer; transition: background .15s;
}
.pys-gc-toggle-btn:hover { background: #fdf8f4; }

/* Developer credit footer */
.pys-dev-credit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    padding: 18px 20px;
    margin-top: 32px;
    border-top: 1px solid #ede9e3;
    font-size: 13px;
    color: #aaa;
    font-family: Arial, sans-serif;
}
.pys-dev-credit a {
    color: var(--pys-brand) !important;
    text-decoration: none;
    font-weight: 600;
}
.pys-dev-credit a:hover { text-decoration: underline !important; }
.swiper-pagination-bullet:hover, .swiper-pagination-bullet-active {
    background-color: var(--pys-brand) !important;
}
#pys-gc-apply-btn {
    margin-top: 0px !important;
}
#pys-gc-promo-apply {
    margin-top: 0px !important;
}
#pys-gc-qty-minus, #pys-gc-qty-plus {
    width: 36px !important;
    height: 36px !important;
    padding: 0px 0px 0px 3px !important;
    cursor: pointer !important;
    margin: 0px !important;
    border: 2px solid var(--pys-brand) !important;
    color: var(--pys-brand) !important;
}
.pys-panel ol, .pys-panel ul {
    margin: 20px 0px;
}
.pys-panel ol li, .pys-panel ul li {
    padding-bottom: 5px;
    line-height: normal;
}

/* Responsive */
@media (max-width: 700px) {
    .pys-booking-container { flex-direction: column; }
    .pys-gallery-side, .pys-form-side { width: 100%; }
    .pys-form-row-2 { grid-template-columns: 1fr; }
    .pys-choose-options { grid-template-columns: 1fr; }
    .pys-events-list { grid-template-columns: 1fr; }
    .pys-gc-layout { grid-template-columns: 1fr; }
    .pys-gc-denom-grid { grid-template-columns: repeat(4, 1fr); }
    .pys-dev-credit { flex-direction: column; gap: 4px; text-align: center; }
}
@media (max-width: 600px) {
	.pys-gc-denom-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	.pys-gc-visual-col, .pys-gc-form-col {
		width: 92vw !important;
	}
	.pys-form-side {
		gap: 10px;
		margin: 15px 0px 0px;
	}
}