.ih-frontend-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.ih-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
}

.ih-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ih-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ih-hotspot.active {
    background: rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.ih-hotspot-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 100;
    font-size: 14px;
    color: #999;
}

.ih-hotspot-icon {
    font-weight: 700;
    color: var(--e-global-color-secondary) !important;
}

.ih-hotspot-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px !important;
    color: var(--e-global-color-secondary) !important;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight) !important;
}

.ih-hotspot-content .ih-content {
    color: var(--e-global-color-text) !important;
}

.ih-hotspot-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .ih-hotspot:hover .ih-hotspot-content {
        display: block;
    }

    .ih-mobile-carousel,
    .ih-carousel-nav {
        display: none !important;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .ih-hotspot {
        opacity: 0.3;
        width: 15px;
        height: 15px;
    }

    .ih-hotspot.active {
        opacity: 1;
    }

    .ih-hotspot-content {
        display: none !important;
    }

    .ih-mobile-carousel {
        margin-top: 20px;
        overflow: hidden;
    }

    .ih-carousel-items {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: flex;
        transition-property: transform;
        box-sizing: content-box;
        align-items: flex-start;
        transition-property: transform, height;
    }

    .ih-carousel-item {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin: 0;

        flex-shrink: 0;
        width: 80%;
        height: 100%;
        position: relative;
        transition-property: transform;
        display: block;

        padding: 1.5rem 1rem;
        border-radius: 1rem;
        border: 1px solid #cdcdcd;
        box-sizing: border-box;
    }

    .ih-carousel-item h3 {
        margin: 0;
        line-height: 100%;
        margin-bottom: 1rem;
        font-size: 16px !important;
        color: var(--e-global-color-secondary) !important;
        font-family: var(--e-global-typography-primary-font-family), Sans-serif;
        font-weight: var(--e-global-typography-primary-font-weight) !important;
    }

    .ih-carousel-item .ih-content {
        font-size: 1rem;
        font-weight: 400;
        line-height: 140%;
        margin: 0;
    }

    .ih-carousel-nav {
        display: flex;
        justify-content: flex-start;
        /* Align to left */
        align-items: center;
        margin-top: 20px;
        gap: 8px;
    }

    .ih-carousel-button {
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid #ddd;
    }

    .ih-carousel-button:hover:not(:disabled) {
        background: #f0f0f0;
    }

    .ih-carousel-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Add arrow icons */
    .ih-prev::before,
    .ih-next::before {
        content: '';
        width: 8px;
        height: 8px;
        border-style: solid;
        border-width: 0 2px 2px 0;
        display: inline-block;
        position: relative;
    }

    .ih-prev::before {
        transform: rotate(135deg);
        right: -2px;
    }

    .ih-next::before {
        transform: rotate(-45deg);
        left: -2px;
    }
}