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

.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-form-links {
    margin-top: 12px;
}

/* 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-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 {
    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;
}

.bwam-slot-closed {
    background: #e9ecef;
    color: #6c757d;
    font-style: italic;
}

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

.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;
}

.bwam-amount-note {
    color: #666;
    font-size: 13px;
    margin-left: 4px;
}

/* 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-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: 200px;
    height: 200px;
    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;
}

@media (max-width: 600px) {
    .bwam-activity-image {
        width: 100%;
        height: 200px;
    }
}

.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;
}
