/* ============================================================
   SELECCION DE BLOQUES HORARIOS
============================================================ */

.appointment-context-heading {
    margin-bottom: 24px;
    text-align: center;
}

.appointment-context-heading h3 {
    margin-bottom: 6px;
}

.appointment-list-title {
    color: #24313a;
    font-weight: 400;
    margin: 0 0 18px;
    text-align: center;
}

.appointment-service-alert {
    background: #eaf6fb;
    border: 1px solid #c9e5f3;
    border-radius: 8px;
    color: #136f93;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 auto;
    max-width: 560px;
    padding: 14px 18px;
}

.appointment-service-alert strong {
    color: #24313a;
    font-size: 1.15rem;
    line-height: 1.2;
}

.appointment-service-alert span:last-child {
    color: #5f6872;
    line-height: 1.4;
}

.appointment-service-label {
    color: #136f93;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.appointment-context-media {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 50%;
    display: flex;
    height: 96px;
    justify-content: center;
    margin: 0 auto 12px;
    opacity: 0.82;
    overflow: hidden;
    width: 96px;
}

.appointment-context-media-img {
    display: block;
    height: 78px;
    max-height: 78px;
    max-width: 78px;
    object-fit: contain;
    width: 78px;
}

.appointment-top-nav {
    display: flex;
    justify-content: center;
    margin: -4px 0 18px;
}

.appointment-back-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c9e5f3;
    border-radius: 8px;
    color: #136f93;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    line-height: 1;
    padding: 8px 14px;
}

.appointment-back-button:hover {
    background: #eaf6fb;
}

.appointment-block-form {
    height: 100%;
}

.appointment-block-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #1577a1;
    border-radius: 8px;
    color: #136f93;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 86px;
    padding: 14px 12px;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 100%;
}

.appointment-block-button:hover {
    background: #eaf6fb;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.appointment-block-button.is-disabled {
    background: #f3f5f6;
    border-color: #d7dde1;
    box-shadow: none;
    color: #7b858d;
    cursor: not-allowed;
}

.appointment-block-button.is-disabled:hover {
    background: #f3f5f6;
    box-shadow: none;
    transform: none;
}

.appointment-block-button.is-own {
    background: #eaf7ef;
    border-color: #18864b;
    box-shadow: 0 6px 14px rgba(24,134,75,0.12);
    color: #12663a;
    cursor: default;
}

.appointment-block-button.is-own:hover {
    background: #eaf7ef;
    box-shadow: 0 6px 14px rgba(24,134,75,0.12);
    transform: none;
}

.appointment-block-time {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.appointment-block-duration {
    color: #5f6872;
    font-size: 0.88rem;
    line-height: 1.2;
}

.appointment-block-status {
    background: #e1e5e8;
    border-radius: 8px;
    color: #5f6872;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 4px;
    padding: 6px 8px;
}

.appointment-block-button.is-own .appointment-block-status {
    background: #cfeedd;
    color: #12663a;
}

.appointment-block-reason {
    color: #6f7780;
    font-size: 0.78rem;
    line-height: 1.2;
}

.appointment-block-actions {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
    width: 100%;
}

.appointment-block-actions .appointment-resend-form,
.appointment-block-actions .appointment-cancel-form {
    flex: 1 1 0;
    min-width: 0;
}

.appointment-block-actions .client-reservation-action-button {
    width: 100%;
}

.appointment-block-action-help {
    color: #6f7780;
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 4px;
}

.appointment-block-action-help.is-warning {
    color: #9a5a00;
}

@media (max-width: 480px) {
    .appointment-context-heading {
        margin-bottom: 18px;
    }

    .appointment-list-title {
        font-size: 1.65rem;
        margin-bottom: 14px;
    }

    .appointment-context-media {
        height: 78px;
        margin-bottom: 10px;
        width: 78px;
    }

    .appointment-context-media-img {
        height: 62px;
        max-height: 62px;
        max-width: 62px;
        width: 62px;
    }

    .appointment-service-alert {
        padding: 12px 14px;
    }

    .appointment-back-button {
        justify-content: center;
        font-size: 0.94rem;
    }

    .appointment-block-button {
        min-height: 96px;
        padding: 13px 10px;
    }

    .appointment-block-button.is-own {
        padding: 14px 8px;
    }

    .appointment-block-actions {
        gap: 6px;
    }

    .appointment-block-actions .client-reservation-action-button {
        font-size: 0.78rem;
        padding: 8px 6px;
    }
}
