:root {
    --checkout-ink: #465a3e;
    --checkout-muted: #667085;
    --checkout-line: #e7ecef;
    --checkout-soft: #f7f8f8;
    --checkout-cream: #fdf8f4;
    --checkout-card-shadow: 0 28px 70px rgba(17, 24, 39, 0.08);
}

.checkout-page {
    background:
        radial-gradient(circle at top left, rgba(226, 58, 19, 0.08), transparent 24%),
        linear-gradient(180deg, #fcfcfb 0%, #f5f6f4 100%);
    min-height: 100vh;
    padding: 60px 0;
    overflow-x: hidden;
}
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}
.checkout-header {
    text-align: center;
    margin-bottom: 44px;
}
.checkout-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(226, 58, 19, 0.08);
    color: var(--at-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.checkout-title {
    font-size: 2.9rem;
    font-weight: 700;
    color: var(--checkout-ink);
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}
.checkout-subtitle {
    font-size: 1.06rem;
    color: var(--checkout-muted);
}
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    margin-bottom: 40px;
    align-items: start;
}
.checkout-form-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--checkout-card-shadow);
    min-width: 0;
}
.checkout-summary-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--checkout-card-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
    min-width: 0;
}
.form-section-title {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--checkout-line);
    letter-spacing: -0.02em;
}
.form-section-title-spaced {
    margin-top: 42px;
}
.form-group {
    margin-bottom: 22px;
}
.form-label {
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 10px;
    display: block;
}
.form-label .required {
    color: var(--at-primary);
}
.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--checkout-line);
    border-radius: 16px;
    font-size: 1rem;
    color: var(--checkout-ink);
    background: rgba(249, 250, 250, 0.9);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-control:focus {
    outline: none;
    border-color: rgba(226, 58, 19, 0.35);
    background: white;
    box-shadow: 0 0 0 4px rgba(226, 58, 19, 0.08);
}
gmp-place-autocomplete.form-control {
    display: block;
}
gmp-place-autocomplete.form-control.place-selected {
    border-color: var(--at-primary);
    background: #fff5f2;
    box-shadow: 0 0 0 4px rgba(226, 58, 19, 0.12);
}
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}
.summary-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--checkout-line);
    letter-spacing: -0.02em;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}
.summary-item-content {
    flex: 1;
    min-width: 0;
}
.summary-item-name {
    font-weight: 600;
    color: var(--checkout-ink);
    word-wrap: break-word;
    line-height: 1.35;
}
.summary-item-description,
.summary-item-meta {
    font-size: 0.92rem;
    color: var(--checkout-muted);
    margin-top: 6px;
    word-wrap: break-word;
}
.summary-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--checkout-ink);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--checkout-line);
}
.summary-total-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--checkout-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.summary-total-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--checkout-ink);
    letter-spacing: -0.04em;
}
.selected-schedule-summary {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--checkout-line);
    border-radius: 18px;
    background: var(--checkout-soft);
}
.selected-schedule-summary-title {
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 8px;
}
.selected-schedule-summary-text {
    font-size: 0.92rem;
    color: var(--checkout-muted);
    margin-bottom: 4px;
}
.selected-schedule-summary-text-strong {
    color: var(--checkout-ink);
    margin-bottom: 14px;
}
.summary-trust-card {
    margin-top: 26px;
    padding: 18px;
    background: linear-gradient(180deg, #fff8f5 0%, #fff 100%);
    border: 1px solid rgba(226, 58, 19, 0.1);
    border-radius: 18px;
}
.summary-trust-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.summary-trust-icon {
    color: var(--at-primary);
    margin-top: 3px;
}
.summary-trust-title {
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 4px;
}
.summary-trust-text {
    font-size: 0.92rem;
    color: var(--checkout-muted);
}
.form-helper {
    display: block;
    margin-top: 8px;
    color: var(--checkout-muted);
    font-size: 0.88rem;
}
.checkout-disclaimer {
    margin-top: 26px;
    padding: 20px;
    background: #f8fafb;
    border-radius: 18px;
    border: 1px solid var(--checkout-line);
}
.checkout-disclaimer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-disclaimer-text {
    font-size: 0.85rem;
    color: var(--checkout-muted);
    line-height: 1.5;
}
.checkout-disclaimer-text ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}
.checkout-disclaimer-text li {
    margin-bottom: 5px;
}
.checkout-hold-timer {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--at-primary);
}
.checkout-button {
    width: 100%;
    background: linear-gradient(135deg, #e23a13 0%, #f15c22 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    margin-top: 30px;
    box-shadow: 0 18px 34px rgba(226, 58, 19, 0.2);
}
.checkout-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(226, 58, 19, 0.24);
}
.checkout-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.datetime-wrapper {
    position: relative;
}
.datetime-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}
/* Datepicker personalizado estilo semanal */
.custom-datepicker {
    background: white;
    border: 1px solid var(--checkout-line);
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    margin-bottom: 25px;
    position: relative;
    transition: opacity 0.3s ease;
}
.custom-datepicker.blocked {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}
.custom-datepicker.blocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    z-index: 10;
}
.custom-datepicker.blocked::after {
    content: 'Por favor, selecciona tu ciudad primero para continuar';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--at-primary);
    color: white;
    padding: 15px 25px;
    border-radius: 14px;
    font-weight: 600;
    z-index: 11;
    white-space: normal;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.datepicker-header {
    background: linear-gradient(135deg, #465a3e 0%, #5f7457 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin: -25px -25px 20px -25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.datepicker-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}
.datepicker-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.datepicker-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.datepicker-nav-btn.disabled,
.datepicker-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}
.datepicker-nav-btn.disabled:hover,
.datepicker-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
}
.datepicker-current-week {
    font-size: 1rem;
    font-weight: 600;
}
.datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.datepicker-day {
    background: #f7f8f8;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.datepicker-day:hover {
    background: #fff5f2;
    border-color: var(--at-primary);
}
.datepicker-day.selected {
    background: #fff5f2;
    border-color: var(--at-primary);
    color: var(--at-primary);
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(226, 58, 19, 0.08);
}
.datepicker-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F5F5F5;
}
.datepicker-day.no-hours {
    opacity: 0.6;
    cursor: not-allowed;
    background: #fcf2e8;
}
.datepicker-day.no-hours:hover {
    background: #fcf2e8;
    border-color: transparent;
}
.datepicker-day-name {
    font-size: 0.75rem;
    color: var(--checkout-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}
.datepicker-day-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--checkout-ink);
}
.datepicker-day.selected .datepicker-day-number {
    color: var(--at-primary);
}
.time-slots-section {
    margin-top: 25px;
}
.time-slots-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--checkout-ink);
    margin-bottom: 15px;
}
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}
.time-slot-btn {
    background: #fbfcfc;
    border: 1px solid var(--checkout-line);
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 82px;
}
.time-slot-time {
    font-weight: 600;
    line-height: 1.1;
}
.time-slot-meta {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--checkout-muted);
}
.time-slot-btn:hover {
    border-color: var(--at-primary);
    background: #fff5f2;
    color: var(--at-primary);
    box-shadow: 0 12px 22px rgba(226, 58, 19, 0.08);
}
.time-slot-btn:hover .time-slot-meta {
    color: var(--at-primary);
}
.time-slot-btn.selected {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: white;
    box-shadow: 0 18px 28px rgba(226, 58, 19, 0.18);
}
.time-slot-btn.selected .time-slot-meta {
    color: rgba(255, 255, 255, 0.85);
}
.time-slot-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F5F5F5;
}
.time-slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-slot-specialist {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    font-weight: normal;
    text-align: center;
    line-height: 1.2;
    /* display: none; */
}
.selected-info {
    margin-top: 20px;
    padding: 16px 18px;
    background: #fff5f2;
    border: 1px solid rgba(226, 58, 19, 0.12);
    border-radius: 16px;
    display: none;
}
.selected-info.active {
    display: block;
}
.selected-info-text {
    color: var(--checkout-ink);
    font-weight: 600;
}

.specialist-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--checkout-line);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.specialist-option-card:hover {
    border-color: var(--at-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.specialist-option-card:focus {
    outline: none;
}

.specialist-option-card:focus-visible {
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px rgba(226, 58, 19, 0.18);
}

.specialist-option-card-image {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.specialist-option-card-name {
    color: var(--checkout-ink);
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}
@media (max-width: 968px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    .checkout-summary-card {
        position: relative;
        top: 0;
    }
    .checkout-title {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .checkout-page {
        padding: 40px 0;
    }
    .checkout-content {
        gap: 20px;
    }
    .checkout-form-card {
        padding: 30px;
    }
    .checkout-summary-card {
        padding: 24px;
    }
    .checkout-title {
        font-size: 1.8rem;
    }
    .checkout-subtitle {
        font-size: 1rem;
    }
    .form-section-title,
    .summary-title {
        font-size: 1.15rem;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
    .custom-datepicker {
        padding: 20px;
    }
    .datepicker-header {
        padding: 16px;
        margin: -20px -20px 16px -20px;
        flex-wrap: wrap;
    }
    .datepicker-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .datepicker-current-week {
        font-size: 0.95rem;
    }
    .datepicker-days {
        gap: 6px;
    }
    .datepicker-day {
        padding: 10px 6px;
    }
    .datepicker-day-name {
        font-size: 0.7rem;
    }
    .datepicker-day-number {
        font-size: 0.95rem;
    }
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    }
    .checkout-disclaimer {
        padding: 16px;
    }
}
@media (max-width: 480px) {
    .checkout-page {
        padding: 32px 0;
    }
    .checkout-form-card {
        padding: 22px;
    }
    .checkout-summary-card {
        padding: 20px;
    }
    .checkout-title {
        font-size: 1.6rem;
    }
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .summary-item-price {
        text-align: left;
    }
    .custom-datepicker.blocked::after {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

#pac-container {
    position: relative;
}

.pac-mobile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1055;
}

.pac-mobile-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.pac-mobile-item:last-child {
    border-bottom: none;
}

.pac-mobile-item:hover {
    background: #f8f9fa;
}

.pac-mobile-primary {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.pac-mobile-secondary {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}
