.wk-event-configurator {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 5000;
}

.wk-event-configurator.is-open {
    display: flex;
}

.wk-event-configurator__overlay {
    background: rgba(18, 18, 18, 0.55);
    inset: 0;
    position: absolute;
}

.wk-event-configurator__dialog {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    max-height: min(86vh, 860px);
    max-width: 860px;
    overflow: auto;
    padding: 24px;
    position: relative;
    width: min(100%, 860px);
    z-index: 1;
}

.wk-event-configurator__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #555;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 12px;
    width: 34px;
}

.wk-event-configurator__close:hover,
.wk-event-configurator__close:focus {
    color: #111;
}

body.wk-event-modal-open {
    overflow: hidden;
}

.product-add-to-cart.wk-event-native-cart-hidden > .control-label,
.product-add-to-cart.wk-event-native-cart-hidden .qty,
.product-add-to-cart.wk-event-native-cart-hidden .bootstrap-touchspin,
.product-add-to-cart.wk-event-native-cart-hidden .add,
.product-add-to-cart.wk-event-native-cart-hidden .js-product-availability,
.product-add-to-cart.wk-event-native-cart-hidden .js-product-minimal-quantity {
    display: none !important;
}

.product-add-to-cart.wk-event-native-cart-hidden .product-quantity > :not(.wk-event-open) {
    display: none !important;
}

.product-add-to-cart.wk-event-native-cart-hidden .product-quantity {
    align-items: stretch;
    display: block;
}

.product-add-to-cart.wk-event-native-cart-hidden .wk-event-open {
    display: block !important;
}

.product-add-to-cart.wk-service-booking-native-cart > .control-label,
.product-add-to-cart.wk-service-booking-native-cart .qty,
.product-add-to-cart.wk-service-booking-native-cart .bootstrap-touchspin {
    display: none !important;
}

.product-add-to-cart.wk-service-booking-native-cart .product-quantity {
    align-items: stretch;
}

.wk-event-open {
    width: 100%;
}

.wk-event-open__button {
    min-height: 44px;
    width: 100%;
}

.wk-event-configurator__head h3 {
    margin: 0 0 4px;
    padding-right: 36px;
    font-size: 20px;
    text-transform: uppercase;
}

.wk-event-configurator__head p {
    margin: 0 0 16px;
    color: #666;
}

.wk-event-configurator__grid,
.wk-event-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wk-event-field--wide {
    grid-column: span 2;
}

.wk-event-field label,
.wk-event-groups-title,
.wk-event-group > span,
.wk-event-groups strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.wk-event-groups-title {
    margin-top: 4px;
}

.wk-event-menu-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.wk-event-menu-info__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #22b8d6;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    padding: 0;
    width: fit-content;
    text-align: left;
}

.wk-event-menu-info__toggle::after {
    border-color: currentColor transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0;
    content: "";
    display: inline-block;
    margin-top: 2px;
}

.wk-event-menu-info__toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.wk-event-menu-info__meta {
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 4px;
    color: #555;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 4px;
    line-height: 1.4;
    margin-top: 0;
    max-width: 100%;
    padding: 8px 10px;
    width: 100%;
}

.wk-event-menu-info__meta-item {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wk-event-menu-info__meta-item strong {
    color: #222;
    font-weight: 700;
}

.wk-event-date-disabled span,
.wk-event-date-disabled a {
    opacity: 0.35;
}

#ui-datepicker-div {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    display: none;
    padding: 10px;
    width: 280px;
    z-index: 9999 !important;
}

#ui-datepicker-div .ui-datepicker-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

#ui-datepicker-div .ui-datepicker-title {
    font-weight: 700;
    order: 2;
    text-align: center;
    width: 100%;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    align-items: center;
    color: #22b8d6;
    cursor: pointer;
    display: inline-flex;
    font-size: 0;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    order: 1;
    text-align: center;
}

#ui-datepicker-div .ui-datepicker-next {
    order: 3;
}

#ui-datepicker-div .ui-datepicker-prev .ui-icon,
#ui-datepicker-div .ui-datepicker-next .ui-icon {
    display: none !important;
}

#ui-datepicker-div .ui-datepicker-prev::before {
    content: "<";
    font-size: 16px;
}

#ui-datepicker-div .ui-datepicker-next::before {
    content: ">";
    font-size: 16px;
}

#ui-datepicker-div table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

#ui-datepicker-div th,
#ui-datepicker-div td {
    padding: 2px;
    text-align: center;
}

#ui-datepicker-div td a,
#ui-datepicker-div td span {
    border-radius: 3px;
    color: #222;
    display: block;
    padding: 6px 4px;
}

#ui-datepicker-div td a:hover,
#ui-datepicker-div .ui-datepicker-current-day a {
    background: #22b8d6;
    color: #fff;
    text-decoration: none;
}

#ui-datepicker-div .ui-datepicker-unselectable span {
    color: #aaa;
}

.wk-event-configurator input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.wk-event-menu-info__panel {
    background: #fff;
    border: 1px solid #ededed;
    border-left: 3px solid #6654a3;
    border-radius: 4px;
    margin-top: 0;
    max-height: min(260px, 34vh);
    overflow: auto;
    padding: 14px;
}

.wk-event-menu-info__meta[hidden],
.wk-event-menu-info__panel[hidden] {
    display: none !important;
}

.wk-event-menu-info__description {
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.wk-event-menu-info__description h1,
.wk-event-menu-info__description h2,
.wk-event-menu-info__description h3 {
    margin: 0 0 10px;
}

.wk-event-menu-info__description p {
    margin: 0 0 8px;
}

.wk-event-menu-info__description p:last-child {
    margin-bottom: 0;
}

.wk-event-menu-info__pdf {
    display: inline-flex;
    margin-top: 10px;
    font-weight: 700;
}

.wk-event-group {
    border: 1px solid #ededed;
    border-radius: 4px;
    padding: 10px;
}

.wk-event-group small {
    align-items: baseline;
    color: #777;
    display: inline-flex;
    gap: 2px;
    margin-bottom: 8px;
}

.wk-event-group .wk-event-group__price-value {
    font-weight: 700;
}

.wk-event-group .wk-event-group__price-unit {
    font-size: calc(1em - 1px);
}

.wk-event-groups__empty {
    grid-column: span 2;
    margin: 0;
    color: #b23b3b;
}

.wk-event-contact-info {
    margin-top: 4px;
}

.wk-event-contact-info strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.wk-event-contact-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.wk-event-configurator__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ededed;
}

.wk-event-configurator__summary span {
    display: block;
    color: #666;
}

.wk-event-configurator__summary strong {
    font-size: 22px;
}

.wk-event-configurator__service-note {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    max-width: 520px;
}

.wk-event-configurator__message {
    margin-top: 12px;
    color: #b23b3b;
}

.wk-event-configurator__message.is-success {
    color: #2e7d32;
}

.wk-event-extra-content {
    color: #333;
    line-height: 1.65;
    white-space: normal;
}

@media (max-width: 767px) {
    .wk-event-configurator {
        align-items: flex-end;
        padding: 12px;
    }

    .wk-event-configurator__dialog {
        max-height: 90vh;
        padding: 20px 16px;
        width: 100%;
    }

    .wk-event-configurator__grid,
    .wk-event-groups {
        grid-template-columns: 1fr;
    }

    .wk-event-field--wide {
        grid-column: span 1;
    }

    .wk-event-groups__empty {
        grid-column: span 1;
    }

    .wk-event-configurator__summary {
        align-items: stretch;
        flex-direction: column;
    }
}
