.confirmation-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
}

.appointment-details {
    margin: 2rem 0;
}

.detail-row {
    display: flex;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: bold;
    width: 120px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-confirm {
    background-color: #3788d8;
    color: white;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    margin: 1rem 0;
}

/* Do not use class name "loading-spinner" — styles.css defines it and loads after this file */
.confirm-loading-row,
.presence-loading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.confirm-loading-spinner,
.presence-loading-spinner {
    display: inline-block;
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border: 3px solid rgba(55, 136, 216, 0.2);
    border-top-color: #3788d8;
    border-radius: 50%;
    vertical-align: middle;
}

.confirm-loading-spinner {
    animation: confirm-embed-spin 0.7s linear infinite;
}

.presence-loading-spinner {
    animation: presence-embed-spin 0.7s linear infinite;
}

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

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

.button-container.appointment-actions {
    display: none;
}

.button-container.appointment-actions.is-visible {
    display: flex;
}

/* Mobile responsive styles to prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .confirmation-container {
        margin: 1rem;
        padding: 1rem;
        max-width: calc(100% - 2rem);
        width: auto;
    }
    
    .button-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .btn-confirm {
        order: 1;
    }
    
    .btn-cancel {
        order: 2;
    }
    
    .detail-row {
        flex-wrap: wrap;
    }
    
    #privacyConsentRow {
        flex-wrap: nowrap;
        align-items: center;
    }

    #privacyConsentRow input[type="checkbox"] {
        flex-shrink: 0;
    }
    
    .detail-label {
        width: 80px;
    }
}

@media (max-width: 400px) {
    .confirmation-container {
        margin: 0.5rem;
        padding: 0.75rem;
        max-width: calc(100% - 1rem);
    }
    
    h1 {
        font-size: 1.25rem;
    }
} 