/* =========================
   SERVICE ACTIONS BAR
========================= */

.service-actions-bar {
    width: 100%;
    background: #f2f2f2;

    padding: 0 !important;
    margin: 0 !important;

    min-height: 0 !important;
    height: auto !important;
}

.service-actions-container {

    width: 100%;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;

    padding: 0 10px 0 0 !important;
    margin: 0 !important;

    text-align: right !important;

    min-height: 0 !important;
    height: auto !important;

    position: relative;
}

/* =========================
   WRAPPER
========================= */

.service-actions-dropdown-wrapper {

    position: relative;

    display: inline-flex;

    align-items: center;
}

/* =========================
   BUTTON
========================= */

.service-actions-button {

    position: relative;

    z-index: 10;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;

    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #000000 !important;

    font-size: 15px;
    font-weight: 500;
    line-height: 1;

    min-height: 0 !important;
    height: auto !important;

    cursor: pointer;

    text-align: right !important;
}

/* Hover */

.service-actions-button:hover {

    background: transparent !important;

    color: #000000 !important;
}

/* =========================
   SINGLE PULSE RING
========================= */

.service-actions-pulse {

    position: absolute;

    top: 50%;
    left: 50%;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    border: 3px solid rgba(255, 0, 0, 0.45);

    transform: translate(-50%, -50%);

    z-index: 1;

    pointer-events: none;

    animation: servicePulseRing 2.2s infinite ease-out;
}

/* =========================
   ANIMATION
========================= */

@keyframes servicePulseRing {

    0% {

        opacity: 0.85;

        transform: translate(-50%, -50%) scale(0.65);
    }

    100% {

        opacity: 0;

        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* =========================
   DROPDOWN
========================= */

.service-actions-dropdown {

    position: absolute;

    top: 0;
    right: 0;

    width: 250px;

    background: rgba(211, 232, 249, 0.8);

    backdrop-filter: blur(10px);

    border-radius: 12px;

    border: #135f84 3px solid;

    box-shadow: 0 20px 30px rgba(0,0,0,0.10);

    padding-top: 0;
    padding-bottom: 10px;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

/* OPEN */

.service-actions-dropdown.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

/* =========================
   GROUP TITLE
========================= */

.service-actions-group-title {

    padding: 8px 18px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #ffffff;

    background-color: #135f84;

    text-align: left;
}

/* =========================
   ITEMS
========================= */

.service-actions-item {

    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 25px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.service-actions-item:hover,
.service-actions-item:visited,
.service-actions-item:focus,
.service-actions-item:active
{
    background: rgba(0,0,0,0.18);
    color: #000000;
    outline:none;
    text-decoration: none;
}

/* =========================
   DIVIDER
========================= */

.service-actions-divider {

    width: calc(100% - 36px);

    height: 1px;

    background: rgba(0, 0, 0, 0);

    margin: 2px auto;
}

/* ========================================
   MEDIA POPUP OVERLAY
======================================== */

.service-media-popup-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.78);

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

/* ACTIVE */

.service-media-popup-overlay.active {

    opacity: 1;
    visibility: visible;
}

/* ========================================
   POPUP BOX
======================================== */

.service-media-popup-container {

    position: relative;

    width: 40%;
    max-width: 850px;

    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 25px 60px rgba(0,0,0,0.40);

    animation: servicePopupFade 0.25s ease;
}

/* ========================================
   CONTENT
======================================== */

.service-media-popup-content {

    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    background: #000000;
}

/* IMAGE */

.service-media-popup-content img {

    width: 100%;
    height: auto;

    display: block;
}

/* VIDEO */

.service-media-popup-content video {

    width: 100%;
    height: auto;

    display: block;

    background: #000000;
}

/* ========================================
   CLOSE BUTTON
======================================== */

.service-media-popup-close {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 48px;
    height: 48px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;

    border-radius: 50%;

    background: #ffffff !important;

    color: #ff0000 !important;

    font-size: 30px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    z-index: 20;

    padding: 0;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-media-popup-close:hover {

    transform: scale(1.08);
    background: #ffffff !important;
    color: #ff0000 !important;

    box-shadow: 0 0 18px rgba(255,255,255,0.6);
}

/* ========================================
   ANIMATION
======================================== */

@keyframes servicePopupFade {

    from {

        opacity: 0;

        transform: scale(0.90);
    }

    to {

        opacity: 1;

        transform: scale(1);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {

    .service-actions-button {

        font-size: 14px;
    }

    .service-media-popup-container {

        width: 55%;
    }
}

@media (max-width: 1100px) {

    .service-actions-button {

        font-size: 14px;
    }
}

@media (max-width: 900px) {

    .service-actions-button {

        font-size: 13px;
    }

    .service-actions-dropdown {

        width: 260px;
    }

    .service-media-popup-container {

        width: 75%;
    }
}

@media (max-width: 600px) {

    .service-actions-container {

        justify-content: flex-end !important;

        padding-right: 10px !important;
    }

    .service-actions-button {

        font-size: 12px;
    }

    .service-actions-dropdown {

        width: 240px;

        right: 0;
    }

    .service-actions-pulse {

        width: 100px;
        height: 100px;
    }

    .service-media-popup-container {

        width: 94%;
    }

    .service-media-popup-close {

        width: 42px;
        height: 42px;

        top: 10px;
        right: 10px;

        font-size: 24px;
    }
}