/* Front-end versions of the wp-admin bits the booking screens use. Scoped to .rbm-front. */
.rbm-front { --rbm-accent: #2271b1; --rbm-border: #dcdcde; font-size: 15px; line-height: 1.5; color: #1d2327; max-width: 100%; }
.rbm-front *, .rbm-front *::before, .rbm-front *::after { box-sizing: border-box; }
.rbm-front h1, .rbm-front h2, .rbm-front h3 { line-height: 1.25; margin: .6em 0 .4em; }
.rbm-front h1.wp-heading-inline { display: inline-block; margin-right: 10px; font-size: 1.6em; }
.rbm-front .wp-header-end { border: 0; margin: 6px 0 0; }
.rbm-front .description { color: #50575e; font-size: 13px; }
.rbm-front .rbm-admin-link { float: right; font-size: 13px; }

.rbm-front .button, .rbm-front .page-title-action, .rbm-front button.button-primary, .rbm-front input[type=submit] {
	display: inline-block; padding: 7px 14px; border: 1px solid var(--rbm-accent); border-radius: 4px; background: #fff;
	color: var(--rbm-accent); font-size: 14px; line-height: 1.3; cursor: pointer; text-decoration: none; font-weight: 500;
}
.rbm-front .button-primary, .rbm-front input[type=submit] { background: var(--rbm-accent); color: #fff; }
.rbm-front .button:hover, .rbm-front .page-title-action:hover { background: #f0f6fc; }
.rbm-front .button-primary:hover, .rbm-front input[type=submit]:hover { background: #135e96; color: #fff; }
.rbm-front .button[disabled], .rbm-front button[disabled] { opacity: .5; cursor: default; }
.rbm-front .button-link { background: none; border: 0; padding: 0; color: var(--rbm-accent); text-decoration: underline; cursor: pointer; font-size: 14px; }

.rbm-front input[type=text], .rbm-front input[type=email], .rbm-front input[type=tel], .rbm-front input[type=number],
.rbm-front input[type=date], .rbm-front input[type=time], .rbm-front input[type=search], .rbm-front input[type=password],
.rbm-front select, .rbm-front textarea {
	padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 15px; background: #fff; color: #1d2327; min-height: 38px;
}

.rbm-front .widefat { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rbm-border); font-size: 14px; }
.rbm-front .widefat th, .rbm-front .widefat td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f0f0f1; }
.rbm-front .widefat thead th { border-bottom: 1px solid var(--rbm-border); font-weight: 600; }
.rbm-front .striped > tbody > tr:nth-child(odd) { background: #f6f7f7; }
.rbm-front .rbm-table-wrap { overflow-x: auto; }

.rbm-front .notice, .rbm-front-notice { background: #fff; border: 1px solid var(--rbm-border); border-left: 4px solid #72aee6; padding: 10px 14px; margin: 10px 0; }
.rbm-front .notice-warning { border-left-color: #dba617; }
.rbm-front .notice-error { border-left-color: #d63638; }
.rbm-front .notice p { margin: 0; }

/* Toasts are appended to <body>, outside .rbm-front. */
.rbm-toast { background: #fff; border: 1px solid #dcdcde; border-left: 4px solid #00a32a; padding: 10px 14px; font-size: 14px; }
.rbm-toast.notice-error { border-left-color: #d63638; }
.rbm-toast p { margin: 0; }

/* The modal must sit above theme headers. */
.rbm-modal { z-index: 999999; }
.rbm-modal-dialog { color: #1d2327; font-size: 15px; }

/* Login box */
.rbm-login { max-width: 420px; background: #fff; border: 1px solid var(--rbm-border); border-radius: 6px; padding: 18px 22px; }
.rbm-login label { display: block; font-weight: 600; margin-bottom: 4px; }
.rbm-login input[type=text], .rbm-login input[type=password] { width: 100%; }
.rbm-login .login-remember label { font-weight: normal; }

/* Availability */
.rbm-availability-calendar, .rbm-client .rbm-calendar { background: #fff; border: 1px solid var(--rbm-border); border-radius: 4px; padding: 10px; }
.rbm-availability-legend { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 8px; }
.rbm-legend-busy, .rbm-legend-mine { display: inline-block; width: 22px; height: 12px; border-radius: 2px; }
.rbm-legend-busy { background: repeating-linear-gradient(135deg, #8c8f94 0 4px, #c3c4c7 4px 8px); }
.rbm-legend-mine { background: #2271b1; }
.rbm-front .fc-event.rbm-busy { background: repeating-linear-gradient(135deg, #8c8f94 0 6px, #a7aaad 6px 12px); border-color: #8c8f94; color: #fff; cursor: default; }
.rbm-front .fc { font-size: 14px; }
.rbm-front .fc .fc-button { text-transform: none; }

/* Client portal */
.rbm-client .rbm-client-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.rbm-client .rbm-client-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1200px) { .rbm-client .rbm-client-layout { grid-template-columns: minmax(300px, 380px) 1fr; } }
.rbm-client .rbm-panel { background: #fff; border: 1px solid var(--rbm-border); border-radius: 6px; padding: 16px 18px; }
.rbm-client .rbm-panel h2 { margin-top: 0; font-size: 1.25em; }
.rbm-client .rbm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rbm-client .rbm-field > span { font-weight: 600; font-size: 14px; }
.rbm-client .rbm-field input, .rbm-client .rbm-field select, .rbm-client .rbm-field textarea { width: 100%; }
.rbm-client .rbm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rbm-client .rbm-bookings { margin-top: 24px; }
.rbm-client .rbm-resched { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.rbm-client .rbm-past summary { cursor: pointer; margin: 14px 0 6px; font-weight: 600; }
