/* General */
.bwam-form-wrap,
.bwam-profile-wrap,
.bwam-reservations-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

/* Extra verticale ruimte tussen secties op profielpagina */
.bwam-profile-wrap h2 {
    margin-top: 32px;
}

.bwam-profile-wrap h2:first-of-type {
    margin-top: 0;
}

.bwam-form {
    max-width: 480px;
}

.bwam-field {
    margin-bottom: 16px;
}

.bwam-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.bwam-field input[type="text"],
.bwam-field input[type="email"],
.bwam-field input[type="tel"],
.bwam-field input[type="password"],
.bwam-field input[type="date"],
.bwam-field input[type="time"],
.bwam-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.bwam-field small {
    display: block;
    color: #666;
    margin-top: 4px;
    font-size: 13px;
}

.bwam-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bwam-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.bwam-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.bwam-button:hover {
    background: #135e96;
    color: #fff;
}

.bwam-button-danger {
    background: #b32d2e;
}

.bwam-button-danger:hover {
    background: #8a2223;
}

.bwam-button-sm {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.bwam-button-sm:hover,
.bwam-button-sm.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Notices */
.bwam-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.bwam-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bwam-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.bwam-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.bwam-front-notice {
    max-width: 960px;
    margin: 16px auto;
    box-sizing: border-box;
}

.bwam-front-notice--auto-dismiss {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bwam-front-notice--auto-dismiss.bwam-front-notice--hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.bwam-form-links {
    margin-top: 12px;
}

.bwam-resend-verification-form {
    display: none;
}

.bwam-notice-warning > p {
    margin: 0;
}

.bwam-resend-verification-link {
    color: inherit;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
}

.bwam-resend-verification-link:hover {
    opacity: 0.85;
}

/* Reservation page */
.bwam-selection-form {
    margin-bottom: 32px;
}

.bwam-select-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 50%;
}

.bwam-select-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bwam-select-group label {
    font-weight: 600;
    white-space: nowrap;
}

.bwam-select-group select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.bwam-room-info {
    margin: 32px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.bwam-room-info-toggle {
    margin: 16px 0 32px;
}

.bwam-room-info-summary {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #f0f0f1;
    color: #2c3338;
    cursor: pointer;
    font-weight: 600;
}

.bwam-room-info-summary:hover {
    background: #e5e5e6;
}

.bwam-room-info-summary::marker {
    color: #2c3338;
}

.bwam-room-info-toggle .bwam-room-info {
    margin-top: 0;
    margin-bottom: 0;
}

.bwam-room-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    order: 1;
}

.bwam-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bwam-room-desc {
    flex: 1;
    min-width: 200px;
}

/* Calendar panel */
.bwam-calendar-panel {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 32px 0;
}

/* Duration bar */
.bwam-duration-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    max-width: 50%;
}

.bwam-duration-bar label {
    font-weight: 600;
    white-space: nowrap;
}

.bwam-duration-bar select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Week nav */
.bwam-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}

.bwam-week-nav-btn {
    flex: 0 0 160px;
}

.bwam-week-nav-btn:last-child {
    text-align: right;
}

.bwam-week-label {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

/* Slots grid */
.bwam-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .bwam-select-row,
    .bwam-duration-bar {
        max-width: 100%;
    }

    .bwam-week-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .bwam-week-label {
        flex: 0 0 100%;
        order: -1;
    }

    .bwam-week-nav-btn {
        flex: 0 0 auto;
    }

    .bwam-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bwam-slots-grid {
        grid-template-columns: 1fr;
    }

    .bwam-day-column {
        margin-bottom: 8px;
    }
}

.bwam-day-column {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bwam-day-past {
    opacity: 0.5;
}

.bwam-day-header {
    background: #f0f0f1;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.bwam-day-slots {
    padding: 4px;
}

.bwam-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px;
    margin-bottom: 4px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
    cursor: default;
    box-sizing: border-box;
}

.bwam-slot-available {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
    border: 2px solid transparent;
}

.bwam-slot-available:hover,
.bwam-slot-available.selected {
    border-color: #28a745;
    background: #c3e6cb;
}

.bwam-slot-taken {
    background: #f8d7da;
    color: #721c24;
	border: 2px solid transparent;
}

.bwam-slot-closed {
    background: #e9ecef;
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
	border: 2px solid transparent;
}

/* Team calendar: "Nog geen reserveringen" = groen (beschikbaar) */
#bwam-slots-grid-team .bwam-slot-closed {
    background: #e9ecef;
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
    white-space: normal;
}

.bwam-calendar-panel-team {
    margin-top: 24px;
}

.bwam-team-calendar-title {
    margin: 0 0 8px;
    font-size: 1.15em;
}

.bwam-team-calendar-intro {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
}

.bwam-day-hours {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.bwam-day-timeline {
    padding: 4px;
}

.bwam-timeline-track {
    position: relative;
    min-height: 220px;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    overflow: hidden;
}

.bwam-timeline-segment {
    position: absolute;
    left: 4px;
    right: 4px;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
    min-height: 28px;
}

.bwam-timeline-free {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0;
    background: #d4edda;
    color: #155724;
    border: 1px dashed #9fd4ad;
    cursor: pointer;
    font: inherit;
}

.bwam-timeline-free:hover {
    background: #c3e6cb;
    border-color: #28a745;
}

.bwam-timeline-free-label {
    font-size: 12px;
    font-weight: 600;
}

.bwam-timeline-booking {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 6px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
    text-align: center;
    line-height: 1.25;
}

.bwam-timeline-time {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.bwam-timeline-member {
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
}

.bwam-team-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #444;
}

.bwam-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bwam-legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.bwam-legend-free {
    background: #d4edda;
}

.bwam-legend-booking {
    background: #f8d7da;
}

.bwam-slot-team-only {
    font-style: italic;
}

.bwam-slot-team-free {
	font-style: normal;
	font-size: 13px;
	cursor: default;
}

.bwam-slot-hint {
    padding: 6px 8px;
    margin-top: 4px;
    background: #fff3cd;
    color: #856404;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* Booking form */
.bwam-booking-form {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 16px;
}

.bwam-booking-summary {
    margin-bottom: 16px;
}

.bwam-inline-login {
    margin-top: 12px;
}

/* Profile reservations */
.bwam-filter-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bwam-reservations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bwam-reservation-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 12px;
}

.bwam-reservation-card--unpaid {
    border-color: #ffeeba;
    background: #fffdf5;
}

.bwam-unpaid-payment-notice {
    display: inline-block;
    margin-top: 8px;
    color: #856404;
    font-weight: 600;
}

.bwam-res-info {
    line-height: 1.6;
}

.bwam-inline-form {
    display: inline;
}

.bwam-status-provisional {
    color: #996800;
    font-weight: 600;
}

.bwam-status-confirmed {
    color: #007017;
    font-weight: 600;
}

/* Activities */
.bwam-activities-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.bwam-activity-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bwam-activity-image {
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.bwam-activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bwam-activity-content {
    flex: 1;
    min-width: 250px;
}

.bwam-activity-content h3 {
    margin: 0 0 8px;
}

.bwam-activity-meta {
    margin: 4px 0;
    font-size: 15px;
}

.bwam-activity-desc {
    margin: 12px 0;
    line-height: 1.6;
}

.bwam-activity-full {
    color: #b32d2e;
    font-weight: 600;
}

.bwam-activity-full-msg {
    color: #b32d2e;
    font-weight: 600;
}

.bwam-activity-registered {
    color: #007017;
    font-weight: 600;
}

.bwam-activity-login-hint {
    color: #666;
    font-style: italic;
}

.bwam-activity-form {
    margin-top: 12px;
}

.bwam-activity-form .bwam-field {
    margin-bottom: 12px;
}

.bwam-activity-date-error {
    margin: 6px 0 0;
    color: #b32d2e;
    font-size: 13px;
}

@media (max-width: 600px) {
    .bwam-activity-image {
        width: 160px;
        height: 160px;
        margin: 0 auto 12px;
    }
}

.bwam-deletion-link {
    text-align: center;
    margin-top: 8px;
}

.bwam-deletion-link a {
    color: #999;
    font-size: 13px;
    text-decoration: underline;
}

.bwam-deletion-link a:hover {
    color: #b32d2e;
}

/* Hide theme header account icon/menu for logged-in users (logout via Mijn Gegevens). */
body.bwam-hide-header-account .ct-header-account,
body.bwam-hide-header-account .ct-header-account-item,
body.bwam-hide-header-account [data-id="account"],
body.bwam-hide-header-account .header-account-item,
body.bwam-hide-header-account .ast-header-account-wrap,
body.bwam-hide-header-account .ast-account-header-wrap,
body.bwam-hide-header-account .oceanwp-login-wrap,
body.bwam-hide-header-account .menu-bar-item.nav-account,
body.bwam-hide-header-account .header-account-button-wrap,
body.bwam-hide-header-account .kadence-account-in-wrap,
body.bwam-hide-header-account .elementor-widget-login,
body.bwam-hide-header-account .wp-block-loginout {
    display: none !important;
}
