/* CC Contact Popup Module Styles */

/* Floating Button */
.cc-contactpopup-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cc-contactpopup-bg, #1F1C3D);
    color: var(--cc-contactpopup-text, #ffffff);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-contactpopup-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.cc-contactpopup-trigger svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.cc-contactpopup-trigger .icon-close {
    display: none;
}

.cc-contactpopup-trigger.is-open .icon-phone {
    display: none;
}

.cc-contactpopup-trigger.is-open .icon-close {
    display: block;
}

/* Popup Modal */
.cc-contactpopup-modal {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 140px);
    background: var(--cc-contactpopup-bg, #1F1C3D);
    color: var(--cc-contactpopup-text, #ffffff);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cc-contactpopup-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Modal Header */
.cc-contactpopup-header {
    padding: 28px 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-contactpopup-header-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
}

.cc-contactpopup-header-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cc-contactpopup-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--cc-contactpopup-text, #ffffff);
}

.cc-contactpopup-subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
    color: var(--cc-contactpopup-text, #ffffff);
}

/* Modal Content */
.cc-contactpopup-content {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(100vh - 340px);
}

/* Contact Items */
.cc-contactpopup-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cc-contactpopup-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    text-decoration: none;
}

.cc-contactpopup-item-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--cc-contactpopup-text, #ffffff);
}

.cc-contactpopup-item-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cc-contactpopup-item-text {
    flex: 1;
    min-width: 0;
}

.cc-contactpopup-item-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--cc-contactpopup-text, #ffffff);
}

.cc-contactpopup-item-detail {
    font-size: 13px;
    opacity: 0.75;
    margin: 0;
    word-break: break-word;
    color: var(--cc-contactpopup-text, #ffffff);
}

/* Hours section */
.cc-contactpopup-hours {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.cc-contactpopup-hours-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cc-contactpopup-hours-icon {
    width: 24px;
    height: 24px;
}

.cc-contactpopup-hours-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cc-contactpopup-hours-label {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--cc-contactpopup-text, #ffffff);
}

.cc-contactpopup-hours-text {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
    color: var(--cc-contactpopup-text, #ffffff);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cc-contactpopup-trigger {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .cc-contactpopup-modal {
        bottom: 86px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }

    .cc-contactpopup-header {
        padding: 22px 18px 16px;
    }

    .cc-contactpopup-content {
        padding: 16px 18px 20px;
    }
}

/* Backdrop for mobile */
.cc-contactpopup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cc-contactpopup-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}