/**
 * Media Attachments CSS
 */

.elementor-widget-enhanced-call-to-action .elementor-cta__content,
.elementor-widget-enhanced-call-to-action .elementor-cta {
    overflow: visible !important;
}

.elementor-widget-enhanced-call-to-action .elementor-cta__content {
    z-index: 2 !important;
}

.elementor-cta__media-attachments {
    width: 100%;
    overflow: visible !important;
    position: relative !important;
    z-index: 999 !important;
}

.custom-dropdown {
    position: relative;
    margin-top: 10px;
    z-index: 9999;
    display: inline-block;
    min-width: 100%;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    background-color: #fff;
    font-size: 20px;
    line-height: 1.5;
    user-select: none;
}

.custom-dropdown__items {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    width: calc(100% + 2px);
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;  /* Even higher z-index */
    display: none;
    overflow: hidden;
    transform: translateX(-50%) translateZ(0);
}

.custom-dropdown.active .custom-dropdown__items {
    display: block;
}

.custom-dropdown .custom-dropdown__item {
/*    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    user-select: none;
    display: inline-block;
*/    min-width: 100%;
}

.custom-dropdown__arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    display: block;
    height: 10px;
    width: 10px;
    border-bottom: 2px solid #0c360c;
    border-right: 2px solid #0c360c;
    transform: translate3d(0,-60%,0) rotateZ(45deg);
    transform-origin: 6px 6px;
    transition: all 0.2s ease-out;
}

.custom-dropdown.active .custom-dropdown__arrow {
    transform: translate3d(0,-60%,0) rotateZ(225deg);
}

.custom-dropdown__wrapper {
    max-height: 200px;
    overflow-y: auto;
}

.custom-dropdown__items .custom-dropdown__item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.custom-dropdown__items .custom-dropdown__item:hover {
    background-color: #f5f5f5;
}

/* Responsive styles */
@media (max-width: 767px) {
    .custom-dropdown {
        width: 100%;
    }
}