/* RMM product selection menu (/products/rmm) */

#wrapper section.product {
    padding: 0;
    overflow: visible;
}

#wrapper section.product .contentsWrap {
    padding-top: 160px !important;
}

/* Content block right below the page title: no extra top padding */
#wrapper section.product .innerContentsWrap + .innerContentsWrap .contentsWrap {
    padding-top: 0 !important;
}

#wrapper section.product .contentsBody {
    overflow: visible;
}

#wrapper section.product .selectric {
    margin: 0 auto;
    min-width: 30rem;
    position: relative;
}

#wrapper section.product .selectric-wrapper {
    position: relative;
    z-index: 1001;
}

#wrapper section.product .selectric-items {
    z-index: 1002 !important;
    position: absolute !important;
    overflow: visible !important;
}

#wrapper section.product .product-dropdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 0 auto;
    width: 70%;
    overflow: visible;
    position: relative;
}

#wrapper section.product .product-selection-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

#wrapper section.product .product-dropdown {
    width: 70%;
    min-width: 140px;
    max-width: 210px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

#wrapper section.product .go-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#wrapper section.product .go-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

#wrapper section.product .go-button:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#wrapper section.product .page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #111;
}

@media (max-width: 768px) {
    #wrapper section.product .product-dropdown-container {
        width: 90%;
        padding: 1rem;
    }

    #wrapper section.product .product-selection-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    #wrapper section.product .product-dropdown {
        width: 100%;
        max-width: none;
        min-width: auto;
        font-size: 1rem;
        height: 48px;
    }

    #wrapper section.product .go-button {
        height: 48px;
        padding: 0 1rem;
        font-size: 1rem;
    }

    #wrapper section.product .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    #wrapper section.product .selectric {
        min-width: 20rem;
        width: 100%;
    }
}
