/* Calenso booking popup styled to match the site (20px radius, #FE6799 accent, Roboto) instead of looking bolted-on. */
#calenso-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 36, 72, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}
#calenso-modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility 0s linear 0s;
}
#calenso-modal .calenso-modal-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 5px 80px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(.98);
    transition: transform .3s ease;
}
#calenso-modal.show .calenso-modal-box {
    transform: translateY(0) scale(1);
}
#calenso-modal .calenso-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid #E2E3E3;
}
#calenso-modal .calenso-modal-title {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    margin: 0;
}
#calenso-modal .calenso-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: -8px -8px -8px 16px;
    background: #f7f7f7;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
    transition: .3s all;
}
#calenso-modal .calenso-modal-close:hover,
#calenso-modal .calenso-modal-close:focus {
    background: #FAD5DD;
    outline: none;
    box-shadow: none;
}
#calenso-modal .calenso-modal-close svg {
    display: block;
}
#calenso-modal .calenso-modal-body {
    padding: 24px 30px 30px;
    overflow-y: auto;
    flex: 1 1 auto;
}
#calenso-modal calenso-booking {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 420px;
    position: relative;
}
/* Pins "Weiter" (.wizard-footer) to the bottom via absolute positioning — it's too deeply nested in Calenso's markup to safely reflow as flex.
   flex:1 here makes .calenso-booking (its nearest positioned ancestor) actually stretch to the full box height so bottom:0 lands correctly. */
#calenso-modal .calenso-booking {
    flex: 1 1 auto;
    padding-bottom: 80px;
    box-sizing: border-box;
}
#calenso-modal .wizard-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2;
}
body .multilang-title {
    font-size: 16px;
    line-height: 24px;
    color: #404040;
}
.cbw-service-duration, .cbw-service-price, .cbw-service-desc, 
.accordion .accordion-item .accordion-body .mobile-text-section,
body .calenso-booking .cw-custom-mobile-title {
    font-size: 16px !important;
    line-height: 24px !important;
}
body .calenso-booking .custom-control-label:before {
    border-color: #E2E3E3 !important;
    /* top: 1px !important; */
}
body .calenso-booking .custom-control-label:after {
    content: "";
    position: absolute;
    top: 7px;
    left: -21px !important;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px !important;
    height: 10px !important;
    border-radius: 100%;
    pointer-events: unset !important;
    background-position: center;
    background-color: #fff;
    background: #FE6799 !important;
    opacity: 0;
}
body .custom-radio .custom-control-input:checked~.custom-control-label:after {
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    background: #FE6799 !important;
}
body .custom-control-input:checked~.custom-control-label:before {
    border-color: #FE6799  !important;
    background: transparent !important;
}
body .custom-checkbox .custom-control-input:checked~.custom-control-label:after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E") !important;
    background-color: #FE6799 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    top: 5px;
    left: -24px !important;
}
body.calenso-modal-open {
    overflow: hidden;
}
body .calenso-button {
    font-family: 'Roboto' !important;
    min-height: 42px;
}
body .calenso-button.primary{
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    align-items: center !important;
    gap: .5rem !important;
    border-radius: 9999px !important;
    background-color: var(--color-deep-blush-400) !important;
    color: #fff !important;
    padding: .5rem 1.5rem !important;
    transition: all .2s !important;
    box-shadow: 0 1px 2px #0000000d !important;
     font-size: 16px !important;
    line-height: 24px !important;
}
body .calenso-button.secondary {
    border: 1px solid #FE6799 !important;
    padding-right: 20px !important;
    font-size: 16px !important;
    line-height: 24px !important;
    gap: 5.86px;
    letter-spacing: .056px !important;
    color: #404040 !important;
    gap: .5rem;
    border-radius: 9999px !important;
    outline: 1px solid var(--color-deep-blush-400);
    font-weight: 500;
    padding: .5rem 1.5rem !important;
    transition: all .2s;
    box-shadow: 0 1px 2px #0000000d;
    background: transparent !important;
}
body .calenso-button.secondary:hover {
    outline: 1px solid var(--color-deep-blush-400) !important;
    background-color: var(--color-deep-blush-100) !important;
}
.cbw-active-worker-card {
    background: #FAD5DD !important;
    outline: 1px solid #FE6799 !important;
}
.cbw-active-worker-card .cw-radio-tick {
    color: #FE6799 !important;
}
body .cbw-appointment-card.cbw-selected-appointment-card .custom-control-label {
    padding-left: 0;
     background: #FAD5DD !important;
}
body .cbw-selected-appointment-card {
    background: #FAD5DD !important;
}
.calenso-booking .mb-4 {
    margin-bottom: 0 !important;
}
body .calenso-booking app-customer-form .form-control{
    padding: 16px 12px !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    color: #000 !important;
    width: 100%;
    border: 1px solid #E2E3E3 !important;
    border-radius: 4px !important;
    margin: 5px 0 0;
}
body .iti.iti--allow-dropdown.iti--show-flags {
    margin: 5px 0 0;
}
body .iti input.iti__tel-input, body .iti input.iti__tel-input[type=text], body .iti input.iti__tel-input[type=tel]{
    border: 1px solid #E2E3E3 !important;font-size: 16px !important;
    line-height: 24px !important;
}
body app-customer-form *, body app-customer-form label, #calenso-booking .summary-tab label, .cart {
    font-family: 'Roboto' !important;
    font-size: 16px !important;
}
.calenso-booking .input-label {
    font-family: 'Roboto' !important;
     font-size: 16px !important;
}
body #calenso-booking .summary-tab label {
    margin: 0 !important;
    font-size: 16px !important;
}
body .calenso-booking app-customer-form .custom-control-label:before {
    top: 5px !important;
}
/* Forces Roboto everywhere in the widget in one shot instead of chasing Calenso's many scattered brand-font rules one by one —
   #calenso-modal + #calenso-booking's combined two-ID specificity beats any single id+class rule regardless of load order. */
#calenso-modal #calenso-booking,
#calenso-modal #calenso-booking * {
    font-family: 'Roboto', sans-serif !important;
}
body .calenso-booking h4 {
    margin-top: 0 !important; 
    margin-bottom: 15px !important;
}
#calenso-modal .calenso-modal-body main {
    margin: 0;
}
div#calenso-booking {
    padding-inline: 0 !important;
}
body .calenso-booking img {
    height: 30px !important;
    width: 30px !important;
    margin: 0 !important;
}
body #calenso-modal .cbw-worker-card {
    min-height: fit-content !important;
    border: 0 !important;
    margin: 0 !important;
    height: 100%;
}
div#calenso-booking .cbw-worker-name {
    margin: 0 !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #404040;
}
.cbw-active-worker-card .cw-radio-tick fa-icon {
    display: flex;
    height: 1em;
    justify-content: end;
}
.cbw-worker-card-container .calenso-col {
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
body .row.cbw-worker-card-container {
    gap: 15px;
    margin: 0 !important;
    padding: 0 !important;
}
body .calenso-booking .worker-container {
    padding: 0 !important;
}
body .cbw-worker-card .cbw-function {
    font-size: 14px !important;
        color: #404040;
}
body .data-container.mb-4 {
    margin-bottom: 10px !important;
}
body .calenso-booking .cw-new-card {
    padding: 0 !important;
}
body .calenso-booking .cw-card-header {
    padding-top: 0 !important;
}
body .data-container.mb-4 {
    margin-bottom: 10px !important;
}
body .calenso-booking .calendar-header .btn:nth-child(1), body .calenso-booking .calendar-header .btn:nth-child(3), body .calenso-booking .calendar-header .btn:nth-child(1) fa-icon, body .calenso-booking .calendar-header .btn:nth-child(3) fa-icon {
    font-size: 16px !important;
}
.calendar-header-button-text {
    padding-top: 0 !important;
}
body .calenso-booking .calendar-header-button-text p {
    margin: 0 !important;
}
body .calenso-booking .calendar-header .btn.disabled h3 {
    font-weight: 600;
    font-size: 18px;
}
body .calenso-booking .cbw-card-title {
    padding: 0 !important;
}
body .calenso-booking .cal-header .cal-cell {
    font-size: 14px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
}
body .calenso-booking .cal-month-view .cal-day-cell .cal-day-number, 
body .calenso-booking .cal-month-view .cal-day-cell.cal-today .cal-day-number {
    line-height: 30px;
    font-size: 14px !important;
}
body #calenso-booking .cbw-date-select-hint-alert {
    font-size: 15px !important;
    line-height: 22px !important;
}
body .calenso-booking .cal-month-view .cal-cell-top {
    min-height: 30px !important;
    line-height: 30px !important;
}
body .calenso-booking .cbw-appointment-card .cbw-title {
    font-size: 15px !important;
}
.calenso-booking .accordion .accordion-item .accordion-header {
    padding: 0;
}
.calenso-booking form#checkboxForm {
    display: flex;
    gap: 15px;
}
.calenso-booking .accordion .accordion-item .accordion-body .accordion-row {
    flex: auto;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 20px 10px;
    margin: 15px 0 0;
}
.calenso-booking .accordion .accordion-item .accordion-body .accordion-row .pb-2 {
    padding-bottom: 4px !important;
}
.calenso-booking .accordion .accordion-item .accordion-body .accordion-row:has(input:checked) {
    background: #FAD5DD !important;
    border-color: #FE6799 !important;
}
@media (min-width: 768px){
.calenso-booking .cbw-worker-card-container .col-lg-6 {
    width: calc(50% - 7.5px);
    padding: 0 !important;
}
}
@media (max-width: 767.98px) {
    /* body .calenso-booking .custom-field.form-group.summary-padding,
body .calenso-booking .form-field-margin.summary-padding,
body .calenso-booking .form-group.cf-checkbox.cbw-checkbox{
    padding-inline: 0 !important;
} 
#calenso-modal #calenso-booking .cw-card-header {
    padding-inline: 0 !important;
}*/
    body .calenso-booking .cbw-worker-card-container .calenso-col {
        padding-left: 0 !important;
    }
    #calenso-modal {
        padding: 0;
    }
    #calenso-modal .calenso-modal-box {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }
    #calenso-modal .calenso-modal-header {
        padding: 20px 20px;
    }
    #calenso-modal .calenso-modal-title {
        font-size: 18px;
    }
    #calenso-modal .calenso-modal-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
    }
    /* Mobile modal is full-height, so let calenso-booking grow to fill it too — keeps the "Weiter" footer pinned to the true bottom. */
    #calenso-modal calenso-booking {
        flex: 1 1 auto;
    }
}
@media (max-width: 575px){
    .calenso-booking form#checkboxForm {
        flex-wrap: wrap;
    }
    .calenso-booking .accordion .accordion-item .accordion-body .accordion-row:last-child{
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #calenso-modal .calenso-modal-box {
        max-width: 90%;
    }
    body #calenso-modal .cbw-worker-card .col-3,
    body #calenso-modal .cbw-worker-card .col-2 {
        width: 15% !important;
        padding-inline: 5px !important;
    }

    body #calenso-modal .cbw-worker-card .cbw-detail_description {
        width: 70% !important;
    }
}

/* Override Calenso's default blue radio buttons with the site pink. */
#calenso-modal .calenso-booking .form-check-input[type="radio"] {
    border-color: #E2E3E3;
    box-shadow: none;
}
#calenso-modal .calenso-booking .form-check-input[type="radio"]:checked {
    background-color: #FE6799;
    border-color: #FE6799;
}
#calenso-modal .calenso-booking .form-check-input[type="radio"]:focus {
    border-color: #FE6799;
    box-shadow: 0 0 0 .25rem rgba(254, 103, 153, 0.25);
}
#calenso-modal .calenso-booking .form-check-input[type="radio"]:active {
    filter: none;
}
/* Same treatment for checkboxes (e.g. the privacy-policy consent box) —
   Calenso's own checkmark SVG is already white, so recoloring the
   background to pink is all that's needed to match the site's checked
   checkbox style used elsewhere (e.g. the newsletter opt-in). */
#calenso-modal .calenso-booking .form-check-input[type="checkbox"] {
    border-color: #E2E3E3;
    box-shadow: none;
}
#calenso-modal .calenso-booking .form-check-input[type="checkbox"]:checked {
    background-color: #FE6799;
    border-color: #FE6799;
}
#calenso-modal .calenso-booking .form-check-input[type="checkbox"]:focus {
    border-color: #FE6799;
    box-shadow: 0 0 0 .25rem rgba(254, 103, 153, 0.25);
}
#calenso-modal .calenso-booking .form-check-input[type="checkbox"]:active {
    filter: none;
}
#calenso-modal .calenso-booking .mt-4 {
    margin-top: 0 !important;
}

/* Calenso also uses Angular Material radios in some steps — theme those via CSS vars too, not just .form-check-input above. */
#calenso-modal .mat-mdc-radio-button {
    --mat-radio-checked-ripple-color: #FE6799;
    --mat-radio-ripple-color: #FE6799;
    --mat-radio-selected-icon-color: #FE6799;
    --mat-radio-selected-focus-icon-color: #FE6799;
    --mat-radio-selected-hover-icon-color: #FE6799;
    --mat-radio-selected-pressed-icon-color: #FE6799;
    --mdc-radio-selected-icon-color: #FE6799;
    --mdc-radio-selected-focus-icon-color: #FE6799;
    --mdc-radio-selected-hover-icon-color: #FE6799;
    --mdc-radio-selected-pressed-icon-color: #FE6799;
    --mdc-radio-selected-focus-state-layer-color: #FE6799;
    --mdc-radio-selected-hover-state-layer-color: #FE6799;
    --mdc-radio-selected-pressed-state-layer-color: #FE6799;
}

/* Tooltips are portaled onto <body> by Angular CDK, outside #calenso-modal, so target them globally instead of scoped. */
ngb-tooltip-window.tooltip,
.tooltip.bs-tooltip-top,
.tooltip.bs-tooltip-bottom,
.tooltip.bs-tooltip-start,
.tooltip.bs-tooltip-end {
    --bs-tooltip-bg: #FE6799 !important;
    --bs-tooltip-color: #fff !important;
}
/* Calenso hardcodes .tooltip-inner's background directly, bypassing --bs-tooltip-bg above — override the property itself. */
.tooltip-inner {
    background-color: #FE6799 !important;
    color: #fff !important;
}
/* Arrow: reset all sides transparent, then re-color only the side matching placement (class repetition boosts specificity to beat Calenso's scoped rule). */
.tooltip-arrow::before {
    border-color: transparent !important;
}
.bs-tooltip-top .tooltip-arrow.tooltip-arrow.tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow.tooltip-arrow.tooltip-arrow::before {
    border-top-color: #FE6799 !important;
}
.bs-tooltip-end .tooltip-arrow.tooltip-arrow.tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow.tooltip-arrow.tooltip-arrow::before {
    border-right-color: #FE6799 !important;
}
.bs-tooltip-bottom .tooltip-arrow.tooltip-arrow.tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow.tooltip-arrow.tooltip-arrow::before {
    border-bottom-color: #FE6799 !important;
}
.bs-tooltip-start .tooltip-arrow.tooltip-arrow.tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow.tooltip-arrow.tooltip-arrow::before {
    border-left-color: #FE6799 !important;
}

/* While <calenso-booking> is still registering (script not fully loaded yet
   on an early click), show our own spinner instead of Calenso's, which can
   get stuck if revealed mid-registration. */
#calenso-modal.calenso-widget-loading calenso-booking {
    visibility: hidden;
}
#calenso-modal.calenso-widget-loading .calenso-modal-body {
    position: relative;
    min-height: 300px;
}
#calenso-modal.calenso-widget-loading .calenso-modal-body::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #E2E3E3;
    border-top-color: #FE6799;
    border-radius: 50%;
    animation: calenso-spin .8s linear infinite;
}
@keyframes calenso-spin {
    to { transform: rotate(360deg); }
}
