.btb-wrapper {
    margin: 24px 0;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.btb-heading {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.btb-field-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btb-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btb-input,
.btb-select {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #111827;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btb-input:focus,
.btb-select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.btb-timeslots {
    margin-top: 4px;
    min-height: 60px;
}

.btb-timeslots-placeholder {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}

.btb-timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.btb-slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btb-slot-button:hover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.btb-slot-selected {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.btb-note {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* Sessions overview */

.btb-sessions-overview {
    margin-top: 4px;
    border-radius: 12px;
    background: #f9fafb;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    color: #111827;
}

.btb-sessions-overview-empty {
    color: #6b7280;
}

.btb-session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.btb-session-row:last-child {
    border-bottom: none;
}

.btb-session-main {
    display: flex;
    flex-direction: column;
    margin-right: 8px;
}

.btb-session-actions {
    display: flex;
    align-items: center;
}

.btb-session-actions button {
    margin-left: 6px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    padding: 3px 8px;
    font-size: 11px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btb-session-actions button:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* Add session button */

#btb-add-session {
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    width: fit-content;
}

#btb-add-session:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

#btb-add-session:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Counter */

.btb-session-counter,
#btb-session-counter {
    margin-top: 6px;
    font-size: 12px;
    color: #4b5563;
}

/* Error highlighting */

.btb-field-error,
.btb-field-error input,
.btb-field-error select {
    border-color: #dc2626 !important;
}

.btb-timeslots.btb-field-error {
    border-radius: 12px;
    border: 1px solid #dc2626;
    padding: 4px;
}

.btb-sessions-overview.btb-field-error {
    border-color: #dc2626;
}

/* WooCommerce button alignment */

.single_add_to_cart_button {
    margin-top: 8px;
}
