/*!
* Relacional (rx.appointment.css)
* Version: 1.1.2
* Build date: Wed Oct 01 2025
*
* Copyright (c) 2025 Relacional ALL RIGHTS RESERVED
* Read about Relacional licensing here: https://relacional.com.br/
*/

.rx-appointment-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.rx-appointment-header {
    margin-bottom: 10px;
}

.rx-appointment-header h2 {
    color: #242424;
    font-family: 'Porto Roobert', sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 36px;
    padding-bottom: 10px;
}

.rx-appointment-header p {
    display: block;
    font-family: Open Sans, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #242424;
    text-align: justify;
    padding-bottom: 10px;
}

.rx-appointment-min-info {
    font-size: 12px !important;
    color: #2d3192 !important;
    margin-top: 8px !important;
}

.rx-appointment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rx-appointment-nav-btn {
    background: #ec1f24;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.rx-appointment-nav-btn:hover:not(:disabled) {
    background: #2d3192;
}

.rx-appointment-nav-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.rx-appointment-days {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.rx-appointment-day {
    flex: 1;
    min-width: 64px;
    border: 2px solid var(--gelare-color-border);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rx-appointment-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
}

.rx-appointment-day:hover::before {
    left: 100%;
}

.rx-appointment-day:hover:not(.disabled) {
    border-color: var(--gelare-color-border-alt);
}

.rx-appointment-day.selected {
    background: #2d3192;
    border-color: #2d3192;
    color: #fff;
}

.rx-appointment-day.disabled {
    cursor: default;
    filter: grayscale(50%);
}

.rx-appointment-day.disabled .rx-appointment-day-name,
.rx-appointment-day.disabled .rx-appointment-day-number,
.rx-appointment-day.disabled .rx-appointment-day-month {
    opacity: 0.3;
}

.rx-appointment-day.future-month {
    background: #e3f2fd;
}

.rx-appointment-day.selected.future-month {
    background: #2d3192;
    border-color: #2d3192;
}

.rx-appointment-day-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rx-appointment-day-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.rx-appointment-day-month {
    font-size: 12px;
    opacity: 0.8;
}

.rx-appointment-day.selected .rx-appointment-day-name,
.rx-appointment-day.selected .rx-appointment-day-month {
    color: rgba(255, 255, 255, 0.95);
}

.rx-appointment-period {
    padding: 24px 0;
    margin-top: 10px;
}

.rx-appointment-period-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.rx-appointment-period-options {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.rx-appointment-period-option {
    position: relative;
}

.rx-appointment-period-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rx-appointment-period-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 2px solid var(--gelare-color-border);
    border-radius: 4px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.rx-appointment-period-label:hover:not(.disabled) {
    border-color: var(--gelare-color-border-alt);
}

.rx-appointment-period-option.disabled {
    cursor: default;
}

.rx-appointment-period-option.disabled .rx-appointment-period-label-text,
.rx-appointment-period-option.disabled .rx-appointment-period-label-time {
    opacity: 0.3;
}

.rx-appointment-period-hint {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin: 10px 0;
    text-align: center;
}

.rx-appointment-period-option input[type="radio"]:checked + .rx-appointment-period-label {
    background: #2d3192;
    border-color: #2d3192;
    color: white;
}

.rx-appointment-period-option input[type="radio"]:disabled + .rx-appointment-period-label {
    cursor: default;
}

.rx-appointment-period-option input[type="radio"]:disabled + .rx-appointment-period-label:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gelare-color-border);
}

.rx-appointment-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.rx-appointment-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.rx-appointment-selected-date {
    color: #2d3192 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.rx-appointment-selected-period {
    color: #2d3192 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
}

.rx-appointment-days-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

.rx-appointment-days-scroll {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.rx-appointment-day {
    flex-shrink: 0;
    min-width: 91px;
}

.rx-appointment-period-label-time {
    font-size: 0.85em;
    font-weight: 400;
}

@media (max-width: 768px) {
    .rx-appointment-container {
        padding: 0;
    }

    .rx-appointment-days {
        gap: 8px;
    }

    .rx-appointment-day {
        min-width: 75px;
        max-width: 75px;
        padding: 8px 4px;
    }

    .rx-appointment-day-name {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .rx-appointment-day-number {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .rx-appointment-day-month {
        font-size: 10px;
    }

    .rx-appointment-period {
        padding: 16px 0 0 0;
    }

    .rx-appointment-period-options {
        gap: 4px;
        justify-content: space-between;
    }

    .rx-appointment-period-option {
        width: auto;
        min-width: 104px;
    }

    .rx-appointment-period-label {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
}

:root {
    --gelare-color-border: rgba(0, 0, 0, 0.08);
    --gelare-color-border-alt: rgba(0, 0, 0, 0.16);
}