.jc-kh {
    --jc-kh-ink: #111111;
    --jc-kh-muted: #5d636a;
    --jc-kh-line: #d7dadd;
    --jc-kh-paper: #ffffff;
    --jc-kh-page: #ffffff;
    --jc-kh-soft: #f5f5f4;
    --jc-kh-accent: #c42a83;
    --jc-kh-accent-dark: #111111;
    --jc-kh-font: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--jc-kh-ink);
    font-family: var(--jc-kh-font);
    font-weight: 250;
    letter-spacing: 0;
    margin: 34px auto;
    max-width: 900px;
}

.jc-kh * {
    box-sizing: border-box;
}

.jc-kh__sr-only {
    clip: rect(0 0 0 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.jc-kh,
.jc-kh label,
.jc-kh legend,
.jc-kh p,
.jc-kh table,
.jc-kh button,
.jc-kh input,
.jc-kh select,
.jc-kh textarea {
    font-family: var(--jc-kh-font) !important;
}

.jc-kh__hero {
    background: #fff;
    border: 1px solid var(--jc-kh-line);
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.jc-kh__hero-media {
    aspect-ratio: 1.7;
    background: #f1f2f2;
    overflow: hidden;
}

.jc-kh__hero-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.jc-kh__hero-copy {
    background: #fff;
    padding: clamp(28px, 5vw, 54px) clamp(28px, 7vw, 82px) clamp(30px, 5vw, 58px);
}

.jc-kh__eyebrow {
    color: var(--jc-kh-muted);
    font-size: clamp(13px, 1.6vw, 18px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.jc-kh__hero h2 {
    color: var(--jc-kh-accent);
    font-size: clamp(42px, 8vw, 82px);
    font-weight: 250;
    line-height: 0.98;
    margin: 0;
    text-transform: uppercase;
}

.jc-kh__hero-subtitle {
    color: var(--jc-kh-ink);
    font-size: clamp(18px, 3vw, 30px) !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    line-height: 1.25 !important;
    margin: 30px 0 0 !important;
    text-transform: uppercase;
}

.jc-kh__form {
    background: var(--jc-kh-page);
    border-radius: 0;
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: 0 0 18px;
}

.jc-kh__form[hidden] {
    display: none;
}

.jc-kh__card {
    background: var(--jc-kh-paper);
    border: 1px solid var(--jc-kh-line);
    border-radius: 0;
    box-shadow: none;
    padding: 30px 34px;
}

.jc-kh__intro {
    border-top: 6px solid var(--jc-kh-accent);
}

.jc-kh__intro h3 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    line-height: 1.18;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.jc-kh__event-choice {
    padding-top: 0;
}

.jc-kh__event-choice select {
    width: 100%;
}

.jc-kh__selected-event {
    border-top: 1px solid #e5e5e5;
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 18px;
}

.jc-kh__selected-event h4 {
    color: var(--jc-kh-ink);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.35;
    margin: 0;
}

.jc-kh__card .jc-kh__selected-event p {
    color: var(--jc-kh-ink);
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
}

.jc-kh__selected-event a {
    color: var(--jc-kh-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jc-kh__selected-event-date {
    color: var(--jc-kh-muted) !important;
    text-transform: uppercase;
}

.jc-kh__required,
.jc-kh__card span[aria-hidden="true"] {
    color: #d93025;
}

.jc-kh__registration-note {
    color: var(--jc-kh-ink);
    font-size: 21px;
    line-height: 1.35;
    margin: 0 0 26px;
    max-width: 900px;
}

.jc-kh__events {
    border-collapse: collapse;
    margin-top: 12px;
    width: 100%;
}

.jc-kh__events th,
.jc-kh__events td {
    border-top: 1px solid #e5e5e5;
    padding: 12px 10px 12px 0;
    text-align: left;
    vertical-align: top;
}

.jc-kh__events th {
    color: var(--jc-kh-muted);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.jc-kh__card label,
.jc-kh__card legend {
    color: var(--jc-kh-ink);
    display: block;
    font-size: 21px;
    font-weight: 300;
    line-height: 1.35;
    margin: 0;
}

.jc-kh__card p {
    font-size: 18px;
    font-weight: 250;
    line-height: 1.45;
    margin: 8px 0 24px;
}

.jc-kh__card fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.jc-kh__card fieldset > legend {
    margin-left: 0 !important;
    padding: 0 !important;
    text-indent: 0;
}

.jc-kh__card input[type="text"],
.jc-kh__card input[type="email"],
.jc-kh__card input[type="number"],
.jc-kh__card select,
.jc-kh__card textarea {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #b7babd;
    border-radius: 0;
    color: var(--jc-kh-ink);
    display: block;
    font: inherit;
    font-size: 17px;
    font-weight: 250;
    margin-top: 34px;
    min-height: 42px;
    padding: 8px 0;
    width: min(100%, 460px);
}

.jc-kh__card select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #111 50%),
        linear-gradient(135deg, #111 50%, transparent 50%),
        linear-gradient(to bottom, var(--jc-kh-line), var(--jc-kh-line));
    background-position:
        calc(100% - 28px) 50%,
        calc(100% - 20px) 50%,
        calc(100% - 54px) 0;
    background-repeat: no-repeat;
    background-size: 8px 8px, 8px 8px, 1px 100%;
    border: 1px solid var(--jc-kh-line);
    border-radius: 0;
    cursor: pointer;
    min-height: 48px;
    padding: 8px 64px 8px 12px;
    width: min(100%, 620px);
}

.jc-kh__card textarea {
    min-height: 84px;
    resize: vertical;
    width: 100%;
}

.jc-kh__card input:focus,
.jc-kh__card select:focus,
.jc-kh__card textarea:focus {
    border-color: var(--jc-kh-accent-dark);
    box-shadow: none;
    outline: 0;
}

.jc-kh__radio {
    align-items: flex-start;
    display: flex !important;
    font-size: 20px !important;
    font-weight: 250 !important;
    gap: 14px;
    margin-top: 20px !important;
}

.jc-kh__radio input {
    appearance: none;
    border: 1px solid #111;
    border-radius: 2px;
    flex: 0 0 auto;
    height: 24px;
    margin: 2px 0 0;
    position: relative;
    width: 24px;
}

.jc-kh__radio input:checked {
    border-color: var(--jc-kh-accent-dark);
}

.jc-kh__radio input:checked::after {
    border: solid var(--jc-kh-accent-dark);
    border-width: 0 3px 3px 0;
    content: "";
    height: 12px;
    left: 7px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 6px;
}

.jc-kh__preorder-offer h3 {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
}

.jc-kh__preorder-offer p {
    color: var(--jc-kh-ink);
    font-size: 18px;
    line-height: 1.45;
    margin: 8px 0 0;
    max-width: 760px;
}

.jc-kh__preorder-toggle {
    margin-top: 22px !important;
}

.jc-kh__preorder-toggle span {
    max-width: 780px;
}

[data-jc-preorder-card] {
    overflow: hidden;
    transition:
        height 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 240ms ease,
        transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-jc-preorder-card].is-sliding {
    pointer-events: none;
}

.jc-kh__participant-details {
    display: grid;
    gap: 28px;
}

.jc-kh__participant-details legend {
    margin-left: 0 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    text-indent: 0;
}

.jc-kh__participant-details input {
    margin-top: 14px !important;
}

.jc-kh__confirmation {
    margin-top: 24px;
}

.jc-kh__confirmation[hidden] {
    display: none;
}

.jc-kh__confirmation-card h3 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 300;
    line-height: 1.18;
    margin: 0 0 18px;
}

.jc-kh__event-summary {
    border-top: 1px solid #e5e5e5;
    display: grid;
    gap: 0;
    margin: 24px 0;
}

.jc-kh__event-summary div {
    border-bottom: 1px solid #e5e5e5;
    display: grid;
    gap: 18px;
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 12px 0;
}

.jc-kh__event-summary dt {
    color: var(--jc-kh-muted);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
}

.jc-kh__event-summary dd {
    margin: 0;
}

.jc-kh__confirmation-block {
    border-top: 1px solid #e5e5e5;
    margin-top: 22px;
    padding-top: 18px;
}

.jc-kh__confirmation-block h4 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px;
}

.jc-kh__confirmation-block ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.jc-kh__confirmation-actions {
    margin-top: 24px !important;
}

.jc-kh__calendar-link {
    border: 1px solid #111;
    color: #111;
    display: inline-flex;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
}

.jc-kh__calendar-link:hover,
.jc-kh__calendar-link:focus {
    background: var(--jc-kh-soft);
    outline: 0;
}

.jc-kh__preorder {
    display: grid;
    gap: 24px;
}

.jc-kh__preorder legend {
    margin-bottom: 6px !important;
    padding: 0 !important;
    text-indent: 0;
}

.jc-kh__preorder-help {
    color: var(--jc-kh-ink);
    font-size: 18px !important;
    line-height: 1.45 !important;
    margin: 0 0 10px !important;
    max-width: 960px;
    padding: 0 !important;
    text-indent: 0;
}

.jc-kh__preorder-rows {
    display: grid;
    gap: 14px;
}

.jc-kh__preorder-row {
    align-items: end;
    border: 1px solid var(--jc-kh-line);
    border-radius: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 84px 44px;
    padding: 14px;
}

.jc-kh__product-search {
    position: relative;
}

.jc-kh__product-search label,
.jc-kh__qty {
    color: var(--jc-kh-muted) !important;
    font-size: 14px !important;
    font-weight: 300 !important;
}

.jc-kh__product-search input,
.jc-kh__qty input {
    margin-top: 6px !important;
    width: 100% !important;
}

.jc-kh__preorder-details-label {
    color: var(--jc-kh-ink) !important;
    font-size: 21px !important;
    font-weight: 300 !important;
    line-height: 1.35 !important;
    margin: 14px 0 -8px !important;
}

.jc-kh__preorder-details {
    border: 1px solid var(--jc-kh-line) !important;
    min-height: 92px !important;
    margin-top: 0 !important;
    padding: 12px !important;
    width: 100% !important;
}

.jc-kh__suggestions {
    background: #fff;
    border: 1px solid var(--jc-kh-line);
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
    left: 0;
    max-height: 270px;
    overflow: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 10;
}

.jc-kh__suggestions:empty {
    display: none;
}

.jc-kh__suggestions button {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #ececec;
    color: var(--jc-kh-ink);
    cursor: pointer;
    display: block;
    font: inherit;
    line-height: 1.25;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.jc-kh__suggestions button:hover,
.jc-kh__suggestions button:focus {
    background: var(--jc-kh-soft);
    outline: 0;
}

.jc-kh__suggestions .jc-kh__manual-product {
    color: var(--jc-kh-accent-dark);
    font-weight: 700;
}

.jc-kh__suggestions small,
.jc-kh__suggestion-note {
    color: var(--jc-kh-muted);
    font-size: 12px;
}

.jc-kh__suggestions small {
    margin-left: 8px;
    white-space: nowrap;
}

.jc-kh__suggestion-note {
    padding: 10px 12px;
}

.jc-kh__add-row {
    border: 1px solid #111;
    border-radius: 0;
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    min-height: 40px;
    padding: 0 14px;
}

.jc-kh__remove-row {
    background: transparent;
    border: 0;
    color: #111;
    cursor: pointer;
    display: inline-grid;
    height: 42px;
    place-items: center;
    padding: 0;
    width: 42px;
}

.jc-kh__remove-row svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 20px;
}

.jc-kh__remove-row:hover,
.jc-kh__remove-row:focus {
    background: transparent;
    outline: 0;
}

.jc-kh__remove-row:hover svg,
.jc-kh__remove-row:focus svg {
    stroke-width: 2.1;
}

.jc-kh__welcome {
    display: none !important;
}

.jc-kh__message {
    border: 1px solid #111 !important;
    min-height: 150px !important;
    padding: 16px !important;
    width: 100% !important;
}

.jc-kh__add-row {
    background: #fff;
    justify-self: start;
}

.jc-kh__actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.jc-kh__actions button {
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    min-height: 48px;
    padding: 0 34px;
}

.jc-kh__actions button[type="submit"] {
    background: #111;
    color: #fff;
}

.jc-kh__actions button[type="reset"] {
    background: transparent;
    color: var(--jc-kh-accent-dark);
}

.jc-kh__status {
    background: #fff;
    border-radius: 0;
    margin: 0;
    min-height: 24px;
    padding: 0 18px;
}

.jc-kh__status.is-error {
    color: #a11f2b;
}

.jc-kh__status.is-success {
    color: #216b42;
}

@media (max-width: 720px) {
    .jc-kh {
        margin: 18px auto;
    }

    .jc-kh__hero-media {
        aspect-ratio: 1.18;
    }

    .jc-kh__hero-media img {
        object-position: 58% top;
    }

    .jc-kh__hero-copy {
        padding: 26px 22px 30px;
    }

    .jc-kh__hero-subtitle {
        margin-top: 20px !important;
    }

    .jc-kh__card {
        padding: 22px;
    }

    .jc-kh__card label,
    .jc-kh__card legend {
        font-size: 20px;
    }

    .jc-kh__card p {
        font-size: 18px;
    }

    .jc-kh__events,
    .jc-kh__events tbody,
    .jc-kh__events tr,
    .jc-kh__events td {
        display: block;
        width: 100%;
    }

    .jc-kh__events thead {
        display: none;
    }

    .jc-kh__events tr {
        border-top: 1px solid #e5e5e5;
        padding: 12px 0;
    }

    .jc-kh__events td {
        border: 0;
        padding: 4px 0;
    }

    .jc-kh__events td::before {
        color: var(--jc-kh-muted);
        display: block;
        font-size: 12px;
        font-weight: 400;
        margin-bottom: 2px;
        text-transform: uppercase;
    }

    .jc-kh__events td:nth-child(1)::before {
        content: "Kauneushoitola";
    }

    .jc-kh__events td:nth-child(2)::before {
        content: "Päivä";
    }

    .jc-kh__events td:nth-child(3)::before {
        content: "Paikka";
    }

    .jc-kh__event-summary div {
        gap: 4px;
        grid-template-columns: 1fr;
    }

    .jc-kh__actions {
        padding: 0 8px;
    }

    .jc-kh__preorder-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-jc-preorder-card] {
        transition: none;
    }
}
