.kk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;margin:24px 0}.kk-card{border:1px solid #ddd;border-radius:14px;overflow:hidden;background:white;color:#252525}.kk-card>img{width:100%;height:200px;object-fit:cover}.kk-card>div{padding:22px}.kk-card h3{margin:8px 0 12px}.kk-card small{letter-spacing:.08em;font-weight:700}.kk-booking,.kk-event-info{padding:20px;margin:20px 0;border:1px solid #ddd;border-radius:12px;background:#faf8f5}.kk-booking textarea{width:100%;display:block;margin-top:8px}.kk-booking input[type=checkbox]{margin-right:8px}.kk-booking{flex-basis:100%}form.cart:has(.kk-booking){flex-wrap:wrap}

/* Compact month grid; on small screens show only dates with activities. */
.kk-calendar{margin:1.25rem 0;color:#202b35;container-type:inline-size}
.kk-calendar *{box-sizing:border-box}
.kk-calendar-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}
.kk-calendar .kk-calendar-header h2{margin:0;font-size:1.4rem;line-height:1.3}
.kk-calendar-header nav{display:flex;gap:.35rem;flex-wrap:wrap}
.kk-calendar-header nav a{display:inline-block;padding:.4rem .6rem;border:1px solid #d5dce1;border-radius:6px;font-size:.8rem;text-decoration:none;line-height:1.4}
.kk-calendar-header nav a:hover{background:#f1f4f6}
.kk-calendar .kk-calendar-legend{display:flex;gap:.5rem;flex-wrap:wrap;margin:.65rem 0}
.kk-calendar-legend span{padding:.25rem .5rem;border-radius:4px;font-size:.75rem;line-height:1.4}
.kk-cal-course{background:#eee8fb!important;color:#462477!important;border-left:3px solid #7852aa}
.kk-cal-event{background:#e3f5ef!important;color:#125542!important;border-left:3px solid #25816b}
.kk-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#d5dce1;border:1px solid #d5dce1;border-radius:8px;overflow:hidden}
.kk-calendar-weekday{padding:.35rem;background:#f1f4f6;text-align:center;font-size:.75rem;font-weight:700}
.kk-calendar-day{background:white;min-height:96px;padding:.3rem;min-width:0}
.kk-calendar-blank{background:#f5f7f8}
.kk-calendar .kk-calendar-day h3{margin:0 0 .25rem;font-size:.85rem;line-height:1.2}
.kk-calendar .kk-calendar-day ul{margin:0;padding:0;list-style:none}
.kk-calendar .kk-calendar-day li{margin:0 0 .25rem;padding:0;list-style:none}
.kk-calendar .kk-cal-item{display:flex;flex-direction:column;gap:.1rem;padding:.3rem;text-decoration:none!important;font-size:.7rem;line-height:1.3;overflow-wrap:anywhere;border-radius:4px}
.kk-cal-meta{display:flex;gap:.1rem .3rem;flex-wrap:wrap;align-items:center}
.kk-cal-type{font-weight:600;font-size:.65rem}
.kk-cal-time{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.65rem}
.kk-calendar .kk-cal-item strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.75rem;line-height:1.3;font-weight:650}
.kk-cal-item:hover strong{text-decoration:underline}
.kk-calendar a:focus-visible,.kk-calendar summary:focus-visible{outline:3px solid #1a4b91;outline-offset:2px}
.kk-calendar-today{box-shadow:inset 0 0 0 2px #356aa0}
.kk-calendar-today h3{color:#1a4b91}
.kk-calendar-mobile{display:none}
.kk-calendar-more{margin:0;border:0;padding:0}
.kk-calendar-more summary{cursor:pointer;font-size:.75rem;font-weight:600;color:#34495e;padding:.25rem;line-height:1.4}
.kk-calendar-more[open] summary{margin-bottom:.25rem}
.kk-calendar .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container(max-width:600px){
.kk-calendar-grid{grid-template-columns:1fr;background:white}
.kk-calendar-weekday,.kk-calendar-blank,.kk-calendar-day-empty{display:none}
.kk-calendar-day{min-height:0;padding:.6rem;border-bottom:1px solid #d5dce1}
.kk-calendar-mobile{display:inline}
.kk-calendar .kk-calendar-day ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.35rem}
.kk-calendar .kk-cal-item{font-size:.8rem;padding:.4rem}
.kk-calendar .kk-cal-item strong{display:block;overflow:visible;font-size:.85rem}
.kk-cal-meta{gap:.5rem}.kk-cal-type,.kk-cal-time{font-size:.75rem}
}
@media(max-width:600px){
.kk-calendar-grid{grid-template-columns:1fr;background:white}
.kk-calendar-weekday,.kk-calendar-blank,.kk-calendar-day-empty{display:none}
.kk-calendar-day{min-height:0;padding:.6rem;border-bottom:1px solid #d5dce1}
.kk-calendar-mobile{display:inline}
.kk-calendar .kk-cal-item strong{display:block;overflow:visible;font-size:.85rem}
}


/* Course detail: override the fixed 512px gallery column in WooCommerce block templates. */
body.kk-course-page .kk-course-layout{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:clamp(24px,4vw,48px);align-items:start}
body.kk-course-page .kk-course-layout>.wp-block-column{min-width:0;width:100%;max-width:100%;flex-basis:auto!important;margin:0;box-sizing:border-box}
body.kk-course-page .kk-course-layout h1,body.kk-course-page .summary h1{word-break:normal;overflow-wrap:break-word;hyphens:none;line-height:1.15;font-size:clamp(30px,3.4vw,48px)}
body.kk-course-page .kk-booking,body.kk-course-page .kk-booking textarea{box-sizing:border-box;max-width:100%;min-width:0}
body.kk-course-page .kk-booking{width:100%;padding:clamp(16px,3vw,24px)}
body.kk-course-page .kk-booking textarea{font-size:16px;min-height:110px;resize:vertical}
body.kk-course-page .kk-booking input[type=checkbox]{min-width:18px;min-height:18px;vertical-align:middle}
body.kk-course-no-image .kk-course-layout>.kk-course-media-only{display:none!important}
body.kk-course-no-image .kk-course-layout{grid-template-columns:minmax(0,1fr)}
body.kk-course-no-image .woocommerce-product-gallery--without-images{display:none!important}
body.kk-course-no-image div.product>.summary{float:none!important;width:100%!important}
@media(max-width:1100px){
 body.kk-course-page .kk-course-layout{display:flex!important;flex-direction:column;flex-wrap:nowrap!important;gap:24px}
 body.kk-course-page .kk-course-layout>.wp-block-column{flex:0 0 auto!important;width:100%!important}
 body.kk-course-page .kk-course-layout>.kk-course-media{max-width:440px;margin-inline:auto}
 body.kk-course-page .kk-course-layout>.kk-course-media .woocommerce-product-gallery{float:none!important;width:100%!important;margin-bottom:0}
 body.kk-course-page div.product>.woocommerce-product-gallery{float:none!important;width:100%!important;max-width:440px;margin:0 auto 24px}
 body.kk-course-page div.product>.summary{float:none!important;width:100%!important}
 body.kk-course-page .kk-course-layout .woocommerce-product-gallery img{max-height:340px;object-fit:contain}
 body.kk-course-page .kk-course-layout h1,body.kk-course-page .summary h1{font-size:clamp(28px,4vw,40px)}
 body.kk-course-page form.cart:has(.kk-booking){display:flex;flex-wrap:wrap;gap:12px;align-items:center}
 body.kk-course-page form.cart:has(.kk-booking) .single_add_to_cart_button{min-height:48px;white-space:normal;max-width:100%}
}

.kk-booking .kk-participants{border:0;padding:0;margin:20px 0;min-width:0}.kk-booking .kk-participants legend{font-weight:600;padding:0}.kk-booking .kk-participant-row{margin:12px 0}.kk-booking .kk-participant-row label{display:block;margin-bottom:6px}.kk-booking .kk-participant-row input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #888;border-radius:5px;background:#fff;color:#222;font-size:16px}.kk-booking .kk-participant-row input::placeholder{color:#777;opacity:1}.kk-booking .kk-participant-row input:focus-visible{outline:2px solid #356aa0;outline-offset:2px}.kk-booking .kk-participants-status{font-size:.9em}.kk-booking .kk-people-fallback[hidden],.kk-booking .kk-participant-row[hidden]{display:none!important}

.kk-booking .kk-quantity-choice{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:24px 0 16px;width:100%;clear:both}.kk-booking .kk-quantity-choice>label{font-weight:600;display:block}.kk-booking .kk-quantity-choice .quantity{float:none!important;margin:0!important}.kk-booking .kk-quantity-choice input[name=quantity],.kk-booking .kk-quantity-choice select[name=quantity]{box-sizing:border-box;min-height:46px;font-size:16px}.kk-booking .kk-quantity-choice input[name=quantity]{min-width:76px}

.kk-price-explanation{display:block;font-size:.8em;font-weight:400;margin-top:6px}.kk-booking .kk-quantity-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}.kk-booking .kk-quantity-controls>button{min-width:46px;min-height:46px;padding:6px 12px;border:1px solid #777;border-radius:5px;background:#fff;color:#222;font-size:24px;cursor:pointer}.kk-booking .kk-quantity-controls>button:disabled{opacity:.4;cursor:not-allowed}.kk-booking .kk-quantity-controls>button:focus-visible{outline:2px solid #356aa0;outline-offset:2px}.kk-booking .kk-remaining{font-size:.9em;flex:1 1 180px}.kk-booking .kk-selection-total{font-weight:600;margin:8px 0}.kk-booking .kk-native-quantity button,.kk-booking .kk-native-quantity .plus,.kk-booking .kk-native-quantity .minus{display:none!important}.kk-booking .kk-quantity-choice input[name=quantity]{width:80px;text-align:center;appearance:textfield;-moz-appearance:textfield}.kk-booking .kk-quantity-choice input[name=quantity]::-webkit-inner-spin-button,.kk-booking .kk-quantity-choice input[name=quantity]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.kk-waitlist{padding:1.2rem;margin:1rem 0;border:1px solid #c8badf;border-radius:8px;background:#f8f5fc}.kk-waitlist label{display:block}.kk-waitlist input:not([type=checkbox]):not([type=hidden]){display:block;width:100%;max-width:420px;padding:.6rem;margin-top:.25rem}.kk-waitlist input[type=number]{max-width:100px!important}.kk-waitlist h3{margin-top:0}
