/* Amelia Services Widget Styles */

/* Wrapper for packages and services */
.amelia-packages-wrapper {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.amelia-packages-custom {
    display: block;
}

/* Category header */
.am-custom-category-header {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

/* Services grid */
.amelia-packages-wrapper .am-custom-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* Package and service items */
.am-custom-package,
.am-custom-service {
    margin-bottom: 20px;
    cursor: pointer !important;
    position: relative;
    pointer-events: auto !important;
}

.am-custom-package-header,
.am-custom-service-header {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 5px;
}

.am-custom-package-name,
.am-custom-service-name,
.am-custom-category-name {
    margin: 0;
    flex-grow: 1;
    padding-right: 10px;
    background: transparent;
}

.am-custom-package-price,
.am-custom-service-price {
    flex-shrink: 0;
    background: inherit;
    margin: 0;
    color: #BF4A34;
}

.am-custom-package-duration,
.am-custom-service-duration {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #808080;
}

/* Pop-up styles */
.am-booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.am-booking-popup[style*="display: flex"] {
    display: flex !important;
}

.am-booking-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.am-booking-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .am-custom-services-grid {
        grid-template-columns: 1fr !important;
    }

    .am-custom-package-header,
    .am-custom-service-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .am-custom-package-price,
    .am-custom-service-price {
        margin-top: 5px;
    }
}