/*--------------------------------------------------------------
# Appointment Sidebar
--------------------------------------------------------------*/

/* Trigger button */
.aps-trigger {
    position: fixed;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    top: calc(50% + 155px);
    right: 15px;
    width: 60px;
    height: 60px;
    background: #C0392B;
    border-radius: 50% ;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s;
}

@media screen and (max-width: 991px) {
    .aps-trigger {
        top: unset;
        bottom: 15px;
    }
}

.aps-trigger:hover {
    background: #CD6155;
}

.aps-trigger:hover img {
    transform: scale(1.2);
}

.aps-trigger img {
    display: block;
    width: 32px;
    height: 32px;
}

/* Page push */
#page {
    transition: margin-right 0.35s ease;
}

#page.aps-page-shift {
    margin-right: 400px;
}

/* Sliding panel */
.aps-sidebar-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 99999999;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
}

.aps-sidebar-panel.open {
    display: flex;
    transform: translateX(0);
}

.aps-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Header */
.aps-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--main-color, #c31b23);
    color: #fff;
    flex-shrink: 0;
}

.aps-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Close button */
.aps-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aps-close-btn:hover {
    opacity: 0.7;
}

/* Back button */
.aps-back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aps-back-btn:hover {
    opacity: 0.7;
}

/* Location picker */
.aps-location-picker {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
}

.aps-location-btn {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    border: 2px solid var(--main-color, #c31b23);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-color, #c31b23);
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.aps-location-btn:hover {
    background: var(--main-color, #c31b23);
    color: #fff;
}

/* iFrame container */
.aps-iframe-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.aps-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Overlay */
.aps-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.aps-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 600px) {
    .aps-sidebar-panel {
        width: 100%;
        box-shadow: none;
    }

    #page.aps-page-shift {
        margin-right: 0;
    }
}