/**
 * Amelia Therapists Availability - Styles
 * Design dopasowany do palety motywu Synergia
 */

:root {
    --ata-primary: var(--blue, #89A7D5);
    --ata-primary-dark: var(--violet, #A9B3DB);
    --ata-primary-light: var(--pink, #DFBBCB);
    --ata-accent: var(--pink, #DFBBCB);
    --ata-text-dark: var(--black-030303, #030303);
    --ata-text-light: rgba(3, 3, 3, 0.72);
    --ata-text-lighter: rgba(3, 3, 3, 0.52);
    --ata-bg-light: var(--gray, #F5F5F5);
    --ata-bg-white: var(--white, #FFFFFF);
    --ata-border: rgba(137, 167, 213, 0.26);
    --ata-slot-bg: rgba(255, 255, 255, 0.9);
    --ata-slot-border: rgba(169, 179, 219, 0.35);
    --ata-danger-bg: rgba(223, 187, 203, 0.18);
    --ata-danger-border: rgba(223, 187, 203, 0.55);
    --ata-danger-text: var(--black-030303, #030303);
    --ata-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --ata-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --ata-radius: 12px;
    --ata-radius-sm: 8px;
}

/* Container */
.ata-therapists-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filtr specjalizacji */
.ata-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--ata-bg-white);
    border-radius: var(--ata-radius);
    box-shadow: var(--ata-shadow);
    border: 1px solid var(--ata-border);
}

.ata-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 320px;
}

.ata-filter-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ata-text-dark);
}

.ata-filter-select {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    font-size: 15px;
    border: 2px solid var(--ata-border);
    border-radius: var(--ata-radius-sm);
    background: var(--ata-bg-white);
    color: var(--ata-text-dark);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ata-filter-select:focus {
    outline: none;
    border-color: var(--ata-primary);
}

.ata-filter-select:hover {
    border-color: var(--ata-primary-light);
}

.ata-no-filter-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--ata-bg-light);
    border-radius: var(--ata-radius);
    color: var(--ata-text-light);
    font-size: 16px;
}

/* Grid System */
.ata-therapists-grid {
    display: grid;
    gap: 20px;
}

.ata-grid-cols-1 {
    grid-template-columns: 1fr;
}

.ata-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ata-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .ata-grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .ata-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .ata-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        flex-basis: auto;
    }

    .ata-filter-label {
        display: block;
    }

    .ata-filter-select {
        width: 100%;
        max-width: none;
    }

    .ata-grid-cols-2,
    .ata-grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Karta terapeuty */
.ata-therapist-card {
    background: var(--ata-bg-white);
    border-radius: var(--ata-radius);
    box-shadow: var(--ata-shadow);
    border: 1px solid rgba(169, 179, 219, 0.22);
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ata-card-deferred {
    display: none;
}

.ata-therapist-card--featured {
    border-color: rgba(137, 167, 213, 0.38);
}

.ata-therapist-card:hover {
    box-shadow: var(--ata-shadow-hover);
    transform: translateY(-2px);
}

/* Header karty */
.ata-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ata-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1.12;
    background: url('../../../../themes/synergia/images/synergia.svg') center var(--blue) no-repeat;
    background-size: 50%;
}

.ata-avatar-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ata-avatar-wrapper::before,
.ata-booking-avatar-wrapper::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27px;
    height: 27px;
    background: var(--violet);
    border-radius: 18px 0 12px 0;
    z-index: 1;
    opacity: .48;
    transition: .2s all;
}

.ata-avatar-wrapper::after,
.ata-booking-avatar-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27px;
    height: 27px;
    background: url('../../../../themes/synergia/images/icon-chev-rw.svg') center no-repeat var(--pink-2);
    background-position: 10px 5px;
    background-size: 10px 18px;
    border-radius: 8px 0 12px 0;
    z-index: 2;
}

.ata-therapist-card:hover .ata-avatar-wrapper::before {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.ata-avatar-link:hover::before,
.ata-avatar-link:focus-visible::before {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

@media (min-width: 1200px) {
    .ata-avatar-wrapper::before,
    .ata-booking-avatar-wrapper::before {
        width: 33px;
        height: 33px;
    }

    .ata-avatar-wrapper::after,
    .ata-booking-avatar-wrapper::after {
        width: 33px;
        height: 33px;
        background-position: 12px 7px;
        background-size: 13px 23px;
        border-radius: 18px 0 12px 0;
    }
}

.ata-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 0;
}

.ata-status-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ata-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ata-provider-info {
    flex: 1;
    min-width: 0;
}

.ata-provider-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--ata-text-dark);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ata-provider-name-first,
.ata-provider-name-last {
    display: block;
}

.ata-provider-name-last {
    font-size: 16px;
    font-weight: 400;
    color: var(--ata-text-light);
}

.ata-provider-title {
    font-size: 14px;
    color: var(--ata-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Link do profilu */
.ata-profile-link {
    color: var(--ata-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.ata-profile-link:hover {
    color: var(--ata-accent);
    text-decoration: underline;
}

/* Szczegóły usługi */
.ata-service-details {
    padding: 16px 0;
    border-top: 1px solid var(--ata-border);
    border-bottom: 1px solid var(--ata-border);
}

.ata-service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ata-text-dark);
    margin: 0 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ata-service-tag {
    display: inline-block;
    background: var(--ata-primary-dark);
    color: var(--ata-text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.ata-service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ata-service-location {
    margin-top: 10px;
}

.ata-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ata-text-light);
}

.ata-meta-item svg {
    flex-shrink: 0;
}

.ata-duration {
    color: var(--ata-primary-dark);
}

.ata-price {
    color: var(--ata-primary);
}

.ata-price-link {
    color: inherit;
    font-weight: 300;
    text-decoration: none;
}

.ata-price-link:hover,
.ata-price-link:focus {
    text-decoration: underline;
}

.ata-location {
    color: var(--ata-accent);
}

/* Sekcja dostępności */
.ata-availability-section {
    flex: 1;
}

.ata-slots-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--ata-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ata-slots-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.ata-slot-info {
    background: var(--ata-slot-bg);
    border: 1px solid var(--ata-slot-border);
    border-radius: var(--ata-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ata-text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    line-height: 1.35;
}

.ata-slot-info::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ata-primary);
    border-radius: 50%;
}

.ata-more-info {
    background: transparent;
    border: none;
    border-radius: var(--ata-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ata-text-lighter);
    font-style: italic;
}

@media (max-width: 600px) {
    .ata-slots-list {
        grid-template-columns: 1fr;
    }
}

.ta-no-slots {
    background: var(--ata-danger-bg);
    border: 1px solid var(--ata-danger-border);
    color: var(--ata-danger-text);
    padding: 12px 16px;
    border-radius: var(--ata-radius-sm);
    font-size: 14px;
    text-align: center;
}

/* Stary styl slot-btn - zachowany dla kompatybilności */
.ata-slot-btn {
    background: var(--ata-bg-white);
    border: 2px solid var(--ata-primary);
    border-radius: var(--ata-radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ata-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none; /* Ukryty, nie używany */
}

/* Przycisk umów wizytę */
.ata-book-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ata-primary);
    border: 2px solid var(--ata-primary);
    border-radius: var(--ata-radius-sm);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ata-bg-white) !important;
    -webkit-text-fill-color: var(--ata-bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ata-book-btn:hover {
    background: transparent;
    color: var(--ata-text-dark) !important;
    -webkit-text-fill-color: var(--ata-text-dark);
    transform: scale(1.02);
}

.ata-book-btn:active {
    transform: scale(0.98);
}

.ata-manual-booking-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: #89a7d51f;
    border: 1px solid #89a7d51f;
    border-radius: var(--ata-radius);
    min-width: 0;
}

.ata-manual-booking-box--grid {
    min-height: 100%;
}

.ata-manual-booking-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ata-text-dark);
    line-height: 1.35;
}

.ata-manual-booking-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    color: var(--ata-primary-dark);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.ata-manual-booking-phone span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ata-manual-booking-phone:hover,
.ata-manual-booking-phone:focus {
    text-decoration: underline;
}

.ata-manual-booking-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #7799cc1f;
}

/* Komunikaty */
.ata-error {
    background: var(--ata-danger-bg);
    border: 1px solid var(--ata-danger-border);
    color: var(--ata-danger-text);
    padding: 16px;
    border-radius: var(--ata-radius-sm);
    text-align: center;
}

.ata-no-results {
    background: var(--ata-bg-light);
    border: 1px solid var(--ata-border);
    color: var(--ata-text-light);
    padding: 32px;
    border-radius: var(--ata-radius-sm);
    text-align: center;
    font-size: 16px;
}

/* Modal dodatkowych terminów */
.ata-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ata-modal-overlay.active {
    display: flex;
}

.ata-modal {
    background: white;
    border-radius: var(--ata-radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.ata-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ata-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ata-text-dark);
    margin: 0;
}

.ata-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ata-text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ata-modal-close:hover {
    background: var(--ata-bg-light);
    color: var(--ata-text-dark);
}

.ata-modal-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .ata-therapist-card {
        padding: 20px;
    }

    .ata-avatar-wrapper {
        width: 100%;
        max-width: none;
    }

    .ata-provider-name {
        font-size: 18px;
    }

    .ata-slot-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ata-service-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .ata-service-details {
        text-align: center;
    }

    .ata-service-name {
        justify-content: center;
    }

    .ata-service-location {
        text-align: center;
    }

    .ata-meta-item {
        justify-content: center;
    }

    .ata-modal-booking {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .ata-modal-booking-header {
        padding: 16px;
    }

    .ata-modal-booking-content {
        padding: 16px;
    }
}

/* Modal bookingowy z formularzem Amelii */
.ata-modal-booking {
    background: white;
    border-radius: var(--ata-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.ata-modal-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--ata-border);
}

.ata-modal-booking-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ata-text-dark);
    margin: 0;
}

.ata-modal-booking-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ata-text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ata-modal-booking-close:hover {
    background: var(--ata-bg-light);
    color: var(--ata-text-dark);
}

.ata-modal-booking-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Informacja o wybranym slocie */
.ata-selected-slot-info {
    background: var(--ata-bg-light);
    padding: 12px 16px;
    border-radius: var(--ata-radius-sm);
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--ata-text-dark);
}

.ata-selected-slot-info strong {
    color: var(--ata-primary);
}

/* Wrapper dla formularza Amelii */
.ata-booking-iframe-wrapper {
    width: 100%;
    height: 600px;
    border-radius: var(--ata-radius-sm);
    overflow: hidden;
    background: var(--ata-bg-light);
}

.ata-booking-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Podsumowanie rezerwacji */
.ata-booking-summary {
    padding: 20px 0;
}

.ata-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--ata-border);
}

.ata-summary-row:last-of-type {
    border-bottom: none;
}

.ata-summary-highlight {
    background: linear-gradient(135deg, rgba(137, 167, 213, 0.16) 0%, rgba(169, 179, 219, 0.12) 100%);
    margin: 0 -20px;
    padding: 16px 20px;
    border-radius: var(--ata-radius-sm);
}

.ata-summary-label {
    font-size: 14px;
    color: var(--ata-text-light);
    font-weight: 500;
}

.ata-summary-value {
    font-size: 15px;
    color: var(--ata-text-dark);
    text-align: right;
}

.ata-date-highlight {
    color: var(--ata-primary) !important;
    font-size: 16px;
}

.ata-meta-row {
    border-bottom: none;
    padding-top: 20px;
    gap: 20px;
}

.ata-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ata-text-dark);
    font-weight: 500;
}

.ata-summary-meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Przycisk przejścia do rezerwacji */
.ata-booking-btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--ata-primary);
    color: var(--ata-bg-white);
    text-decoration: none;
    border: 2px solid var(--ata-primary);
    border-radius: var(--ata-radius-sm);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ata-booking-btn-continue:hover {
    background: transparent;
    color: var(--ata-text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 167, 213, 0.28);
}

.ata-booking-btn-continue:active {
    transform: translateY(0);
}

.ata-booking-btn-continue svg {
    transition: transform 0.3s ease;
}

.ata-booking-btn-continue:hover svg {
    transform: translateX(4px);
}

/* Informacja o bezpieczeństwie */
.ata-booking-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ata-border);
    font-size: 13px;
    color: var(--ata-text-lighter);
}

.ata-booking-security svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Loader */
.ata-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.ata-loader-wrapper p {
    margin-top: 16px;
    color: var(--ata-text-light);
    font-size: 15px;
}

.ata-loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ata-bg-light);
    border-top-color: var(--ata-primary);
    border-radius: 50%;
    animation: ata-spin 1s linear infinite;
}

@keyframes ata-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Komunikat błędu w modalu */
.ata-error-message {
    background: var(--ata-danger-bg);
    border: 1px solid var(--ata-danger-border);
    color: var(--ata-danger-text);
    padding: 16px;
    border-radius: var(--ata-radius-sm);
    text-align: center;
    margin: 20px 0;
}

/* Responsive dla mobile */
@media (max-width: 768px) {
    .ata-booking-iframe-wrapper {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .ata-booking-iframe-wrapper {
        height: 400px;
    }
}

/* Poprawka dla modalu Amelii wewnątrz naszego modala */
.ata-booking-modal-open .ata-modal-overlay {
    z-index: 99999;
}

/* Ukryj oryginalny shortcode Amelii przed wyświetleniem w modalu */
.ata-amelia-forms-container {
    /* Ukryty kontener jest renderowany, ale niewidoczny */
}

/* Nagłówek na stronie rezerwacji */
.ata-booking-header {
    background: white;
    border-radius: var(--ata-radius);
    box-shadow: var(--ata-shadow);
    padding: 24px;
    margin: 0 !important;
}

@media screen and (max-width: 768px) {
    .ata-booking-header {
        margin-bottom: 32px !important;
    }
}

.ata-booking-header-container {
    margin: 0 auto;
}

.ata-booking-provider-row {
    display: block;
}

.ata-booking-provider {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ata-booking-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1.12;
    background: url('../../../../themes/synergia/images/synergia.svg') center var(--blue) no-repeat;
    background-size: 50%;
}

.ata-booking-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 0;
}

.ata-booking-header:hover .ata-booking-avatar-wrapper::before {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.ata-booking-info {
    flex: 1;
}

.ata-booking-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--ata-text-dark);
    margin: 0 0 12px 0;
}

.ata-booking-description {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ata-text-light);
}

.ata-booking-session-note {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ata-text-dark);
    font-weight: 500;
}

.ata-booking-profile-link-wrap {
    margin: 0 0 14px;
}

.ata-booking-profile-link {
    font-size: 14px;
}

.ata-booking-services {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ata-booking-services-wrap {
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ata-border);
}

.ata-booking-choice-group + .ata-booking-choice-group {
    margin-top: 18px;
}

.ata-booking-services-wrap .ata-booking-choice-group {
    display: flex;
    flex-direction: column;
}

.ata-booking-services-label {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ata-text-light);
}

.ata-booking-price-link-wrap {
    margin: -2px 0 14px;
}

.ata-booking-choice-group > .ata-booking-price-link-wrap:not(.ata-booking-price-link-wrap--primary) {
    display: none;
}

.ata-booking-price-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ata-primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ata-booking-price-link svg {
    flex-shrink: 0;
    margin-right: 8px;
}

.ata-booking-price-link:hover,
.ata-booking-price-link:focus {
    text-decoration: underline;
}

.ata-booking-selected-service {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(137, 167, 213, 0.12);
    border: 1px solid rgba(137, 167, 213, 0.16);
    color: var(--ata-text-dark);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.ata-booking-selected-service strong,
.ata-booking-selected-service span {
    color: inherit;
}

.ata-booking-service-item {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(137, 167, 213, 0.12);
    color: var(--ata-text-dark);
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


.ata-booking-service-item:hover,
.ata-booking-service-item:focus-visible {
    background: rgba(137, 167, 213, 0.2);
    border-color: rgba(18, 70, 214, 0.18);
    box-shadow: none;
    text-decoration: none;
    color: var(--ata-text-dark);
}

.ata-booking-service-name {
    color: inherit;
}

.ata-booking-service-item.is-selected {
    background: rgba(18, 70, 214, 0.14);
    border-color: var(--ata-primary);
    box-shadow: inset 0 0 0 1px var(--ata-primary);
}

.ata-booking-service-item small {
    opacity: 0.9;
    font-weight: 400;
    color: inherit;
}

.ata-booking-location-label,
.ata-booking-single-location,
.ata-booking-selected-location {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ata-text-light);
}

.ata-booking-selected-location strong,
.ata-booking-single-location strong {
    color: var(--ata-text-dark);
}

.ata-booking-selected-location {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(236, 93, 144, 0.1);
    border: 1px solid rgba(236, 93, 144, 0.18);
    color: var(--ata-text-dark);
}

.ata-booking-selected-location span,
.ata-booking-single-location span {
    color: var(--ata-text-light);
}

.ata-booking-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ata-booking-location-item {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    justify-content: center;
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 18px;
    background: rgba(236, 93, 144, 0.08);
    border: 1px solid transparent;
    color: var(--ata-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ata-booking-location-item:hover,
.ata-booking-location-item:focus-visible {
    background: rgba(236, 93, 144, 0.14);
    border-color: rgba(236, 93, 144, 0.28);
    box-shadow: none;
    color: var(--ata-text-dark);
    text-decoration: none;
}

.ata-booking-location-item.is-selected {
    background: rgba(236, 93, 144, 0.18);
    border-color: var(--ata-accent);
    box-shadow: inset 0 0 0 1px var(--ata-accent);
}

.ata-booking-location-name {
    color: inherit;
}

.ata-booking-location-address {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: inherit;
    opacity: 0.82;
}

.ata-booking-form-prompt {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--ata-border);
    border-radius: 18px;
    background: rgba(137, 167, 213, 0.08);
    color: var(--ata-text-dark);
    font-size: 15px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .ata-booking-page .page-content {
        margin: 32px 0 56px !important;
    }

    .ata-booking-page .page-content article {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
        gap: 28px;
        align-items: start;
    }

    .ata-booking-page .page-content article > .ata-booking-header {
        grid-column: 1;
        margin: 0 !important;
        height: auto;
    }

    .ata-booking-page .page-content article > .amelia-v2-booking,
    .ata-booking-page .page-content article > .ata-booking-form-prompt,
    .ata-booking-page .page-content article > [id^="amelia-v2-booking-"] {
        grid-column: 2;
        margin: 0;
        position: sticky;
        top: 120px;
    }

    .ata-booking-page .page-content article > .amelia-v2-booking .am-fs__wrapper,
    .ata-booking-page .page-content article > [id^="amelia-v2-booking-"] .am-fs__wrapper,
    .ata-booking-page .page-content article > .amelia-v2-booking .am-step-booking-catalog,
    .ata-booking-page .page-content article > [id^="amelia-v2-booking-"] .am-step-booking-catalog {
        border-radius: 24px;
        overflow: hidden;
        box-shadow: var(--ata-shadow);
        background: #fff;
    }

    .ata-booking-page .page-content article > .ata-booking-form-prompt {
        align-self: start;
    }
}

.ata-profile-availability {
    margin: 40px 0 0;
}

.ata-profile-availability-card {
    background: var(--ata-bg-white);
    border: 1px solid var(--ata-border);
    border-radius: var(--ata-radius);
    box-shadow: var(--ata-shadow);
    padding: 24px;
}

.ata-profile-availability-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ata-profile-availability-title {
    margin: 0;
    color: var(--ata-text-dark);
}

.ata-profile-availability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ata-profile-availability-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ata-profile-availability-actions {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .ata-card-header {
        flex-direction: column;
        align-items: center;
    }

    .ata-avatar-wrapper {
        width: 100%;
        max-width: none;
    }

    .ata-avatar-wrapper::before,
    .ata-avatar-wrapper::after {
        width: 40px;
        height: 40px;
    }

    .ata-avatar-wrapper::after {
        background-position: 14px 8px;
        background-size: 14px 24px;
        border-radius: 16px 0 12px 0;
    }

    .ata-provider-info {
        width: 100%;
        text-align: center;
    }

    .ata-booking-provider-row {
        text-align: center;
    }

    .ata-booking-provider {
        flex-direction: column;
        text-align: center;
    }

    .ata-booking-avatar-wrapper {
        width: 100%;
        max-width: 260px;
    }

    .ata-booking-services {
        justify-content: center;
    }

    .ata-booking-locations {
        justify-content: center;
    }

    .ata-booking-name {
        font-size: 20px;
    }

    .ata-profile-availability-header {
        flex-direction: column;
    }
}

.ata-grid-sentinel {
    width: 100%;
    height: 1px;
}

.ata-shortcode-placeholder {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.ata-grid-loader {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--ata-bg-white);
    border: 1px solid var(--ata-border);
    border-radius: var(--ata-radius);
    box-shadow: var(--ata-shadow);
}

.ata-grid-loader-spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 3px solid rgba(137, 167, 213, 0.2);
    border-top-color: var(--ata-primary);
    animation: ata-spin 0.8s linear infinite;
}

.ata-grid-loader-text {
    margin: 0;
    font-size: 15px;
    color: var(--ata-text-light);
}

@keyframes ata-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
