.wcm-attendees-wrapper {
    margin: 24px 0;
}

.wcm-attendees-summary {
    margin-bottom: 12px;
    font-weight: 600;
}

.wcm-attendees-sort {
    margin-bottom: 16px;
}

.wcm-attendees-sort button {
    margin-right: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #e2e2e2;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: roboto;
}

.wcm-attendees-sort button.active {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

.wcm-attendees-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .wcm-attendees-wrapper.cols-auto .wcm-attendees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcm-attendees-wrapper.cols-2 .wcm-attendees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcm-attendees-wrapper.cols-3 .wcm-attendees-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wcm-attendee-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(15,23,42,0.06);
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
}

.wcm-attendee-name {
    font-weight: 700;
    color: #333;
}

.wcm-attendee-company {
    color: #333;
    font-size: 14px;
    margin-top: -3px;
}

.wcm-attendee-meta {
    color: #777;
    font-size: 12px;
}

/* Elementor: la shortcode-widgeten få full bredde kun når den inneholder deltakerlisten */
.elementor.elementor .e-con > .elementor-widget:has(.wcm-attendees-wrapper) {
    width: 100%;
    max-width: 100%;
}

.elementor.elementor .e-con > .elementor-widget:has(.wcm-attendees-wrapper) > .elementor-widget-container {
    width: 100%;
    max-width: 100%;
}

.wcm-attendees-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Kun deltaker-/påmeldingsmodulen */
.elementor.elementor .e-con > .elementor-widget:has(.wcm-attendees-wrapper),
.elementor.elementor .e-con.e-con > .e-con-inner > .elementor-widget:has(.wcm-attendees-wrapper) {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
}

/* Selve Elementor-widget-containeren */
.elementor.elementor .e-con > .elementor-widget:has(.wcm-attendees-wrapper) > .elementor-widget-container,
.elementor.elementor .e-con.e-con > .e-con-inner > .elementor-widget:has(.wcm-attendees-wrapper) > .elementor-widget-container {
    width: 100%;
    max-width: 100%;
}

/* Selve deltakerlisten */
.wcm-attendees-wrapper {
    width: 100%;
    max-width: 100%;
}
