/* --- Global Variables --- */
:root {
    --set-notice-bg: #333;
    --set-notice-text: #fff;
    --set-fab-main: #0073aa;
    --set-fab-icon: #fff;
    --set-transition: all 0.3s ease;
}

/* --- Top Notice Bar --- */
/* --- Top Notice Bar --- */
.set-notice-bar {
    position: fixed;
    /* Changed from relative to fixed as requested */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--set-notice-bg);
    color: var(--set-notice-text);
    padding: 10px 40px 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
    z-index: 999999;
    /* Increased z-index */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Sticky class not strictly needed if always fixed, but keeping for compatibility */
.set-notice-bar.set-sticky {
    position: fixed;
    top: 0;
}

/* Ensure notice bar doesn't overlap with WP Admin Bar */
.admin-bar .set-notice-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .set-notice-bar {
        top: 46px;
    }
}

.set-notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.set-notice-text {
    font-size: 14px;
    font-weight: 500;
}

.set-notice-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--set-transition);
}

.set-notice-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.set-notice-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--set-transition);
    line-height: 1;
    padding: 0;
}

.set-notice-close:hover {
    opacity: 1;
}

.set-countdown {
    font-weight: bold;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}


/* --- Floating Action Button (FAB) --- */
.set-fab-wrapper {
    position: fixed;
    bottom: 20px;
    /* Slight adjustment */
    left: 20px;
    z-index: 999998;
    /* High z-index */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Support for different positions */
.set-fab-wrapper.bottom-left {
    right: auto;
    left: 20px;
    bottom: 20px;
}

.set-fab-wrapper.bottom-right {
    left: auto;
    right: 20px;
    bottom: 20px;
}

.set-fab-wrapper.bottom-right .set-fab-actions {
    left: auto;
    right: 0;
}

.set-fab-trigger {
    width: 60px;
    /* Made slightly larger for better touch target */
    height: 60px;
    border-radius: 50%;
    background-color: var(--set-fab-main);
    color: var(--set-fab-icon);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: var(--set-transition);
    position: relative;
    overflow: hidden;
}

.set-fab-trigger:hover {
    transform: scale(1.05);
    /* Smooth scale */
}

.set-fab-trigger:focus {
    outline: none;
}

/* Icon Switching logic handled by class on wrapper */
.set-fab-icon-open,
.set-fab-icon-close {
    position: absolute;
    transition: var(--set-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-fab-wrapper.active .set-fab-icon-open {
    transform: rotate(90deg);
    /* Smoother rotation */
    opacity: 0;
}

.set-fab-wrapper:not(.active) .set-fab-icon-close {
    transform: rotate(-90deg);
    opacity: 0;
}

.set-fab-wrapper.active .set-fab-icon-close {
    transform: rotate(0deg);
    opacity: 1;
}


/* Actions List */
/* Actions List - Absolute to expand UPWARDS from trigger */
.set-fab-actions {
    position: absolute;
    bottom: 70px;
    /* Trigger height + gap */
    left: 0;
    /* Aligned with wrapper */
    width: 60px;
    /* Match trigger width */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Increased gap for better touch separation */
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    padding-bottom: 10px;
}

/* Ensure wrapper doesn't Clip - no specific styles needed here as base styles are defined above */
.set-fab-wrapper.active {
    z-index: 999999;
}

.set-fab-wrapper.active .set-fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.set-fab-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: var(--set-transition);
}

.set-fab-item svg {
    width: 24px;
    height: 24px;
}

.set-fab-item:hover {
    transform: scale(1.1);
}

/* Tooltips */
.set-tooltip {
    position: absolute;
    right: 60px;
    /* Default for bottom-right */
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
}

.set-fab-wrapper.bottom-left .set-tooltip {
    right: auto;
    left: 60px;
}

.set-fab-item:hover .set-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Specific Colors for known brands */
.set-fab-whatsapp {
    background: #25D366;
    color: #fff;
}

.set-fab-messenger {
    background: #0084FF;
    color: #fff;
}

.set-fab-email {
    background: #EA4335;
    color: #fff;
}

.set-fab-call {
    background: #34A853;
    color: #fff;
}


/* Responsive Tweaks */
@media (max-width: 600px) {
    .set-notice-bar {
        padding: 10px 35px 10px 10px;
        flex-direction: column;
        gap: 5px;
    }

    .set-notice-content {
        flex-direction: column;
        gap: 5px;
    }

    .set-notice-close {
        top: 10px;
        transform: none;
    }
}