/* Contact Experts Popup - Frontend Styles */

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

#cep-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    direction: rtl;
}

/* ---------- Popup ---------- */
#cep-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    left: auto;
    display: none;
    opacity: 0;
    transform: translateY(10px) scale(.97);
    transition: opacity .22s ease, transform .22s ease;
    will-change: transform, opacity;
}

#cep-popup.cep-open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

#cep-widget[data-pos="bottom-left"] #cep-popup {
    right: auto;
    left: 0;
}

#cep-popup-inner {
    padding: 16px;
}

#cep-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

#cep-popup-title {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}

.cep-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: .4px;
}

#cep-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    display: flex;
    border-radius: 50%;
    transition: background .2s, color .2s;
    margin-inline-start: auto;
}
#cep-close-btn:hover { background: #f0f0f0; color: #333; }
#cep-close-btn svg   { width: 16px; height: 16px; display: block; }

.cep-hours-text {
    font-size: 12px;
    margin: 0 0 10px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ---------- Contact List ---------- */
#cep-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cep-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    cursor: pointer;
}

.cep-contact-item:hover {
    transform: translateX(-3px);
    text-decoration: none;
}

.cep-contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cep-contact-icon svg {
    display: block;
    flex-shrink: 0;
}

.cep-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cep-contact-label {
    font-size: 12px;
    opacity: .7;
    font-weight: 500;
}

.cep-contact-value {
    font-size: 14px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cep-arrow {
    flex-shrink: 0;
    display: flex;
    opacity: .35;
}
.cep-arrow svg { width: 14px; height: 14px; }

/* ---------- Button ---------- */
#cep-toggle-btn {
    position: relative;
    outline: none;
}

#cep-toggle-btn:focus-visible {
    outline: 3px solid rgba(0,0,0,.3);
    outline-offset: 3px;
}

.cep-btn-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* ---------- Animations ---------- */
@keyframes cep-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,0,0,.25); }
    50%      { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
}
.cep-anim-pulse { animation: cep-pulse 2.5s infinite; }

@keyframes cep-bounce {
    0%,100% { transform: translateY(0); }
    40%     { transform: translateY(-8px); }
    60%     { transform: translateY(-4px); }
}
.cep-anim-bounce { animation: cep-bounce 2s infinite; }

@keyframes cep-shake {
    0%,100% { transform: rotate(0); }
    20%     { transform: rotate(-5deg); }
    40%     { transform: rotate(5deg); }
    60%     { transform: rotate(-3deg); }
    80%     { transform: rotate(3deg); }
}
.cep-anim-shake { animation: cep-shake 3s infinite; }

/* ---------- Overlay ---------- */
#cep-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: -1;
}

/* ---------- Hidden ---------- */
#cep-widget.cep-hidden { opacity: 0; pointer-events: none; }
#cep-widget { transition: opacity .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    #cep-popup { width: calc(100vw - 48px) !important; }
}

/* --- RTL arrow --- */
html[dir="ltr"] .cep-contact-item:hover { transform: translateX(3px); }
html[dir="ltr"] .cep-arrow svg          { transform: scaleX(-1); }
