.wp-block-preformatted{
    min-width:1200px;
    background-color:#f0f0ed;
}
  .page-header {
    max-width: 1100px;
    margin: 0 auto 28px;
  }

  .page-header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #111;
    margin-bottom: 4px;
  }

  .page-header .logged-in {
    font-size: 13px;
    color: #666;
  }

  .page-header .logged-in strong {
    color: #111;
    font-weight: 500;
  }

  .layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
  }

  /* --- Main Form Card --- */
  .form-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  }

  .form-card h2 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .form-group.full {
    grid-column: 1 / -1;
  }

  label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    float: left;
  }

  label .optional {
    font-weight: 400;
    color: #999;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    width: 100%;
    padding: 10px 0px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
  }

  input:focus, select:focus, textarea:focus {
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
  }

  input::placeholder, textarea::placeholder {
    color: #bbb;
  }

  textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
  }

  /* Select with arrow */
  .select-wrapper {
    position: relative;
  }

  .select-wrapper::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
    pointer-events: none;
  }

  .select-wrapper select {
    padding-right: 32px;
    cursor: pointer;
  }

  /* Services section */
  .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    margin-top: 8px;
  }

  .services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .service-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .service-row .select-wrapper {
    flex: 1;
  }

  .service-row select {
    background: #f8f8f7;
    border-color: #e0e0dc;
    font-size: 13px;
  }

  .btn-remove {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
  }

  .btn-remove:hover { border-color: #e55; color: #e55; }

  .btn-add-service {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    margin-top: 2px;
  }

  .btn-add-service:hover { background: #f5f5f3; border-color: #bbb; }

  .btn-add-service svg { width: 14px; height: 14px; }

  /* Add service tools row */
  .service-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .service-tools-label {
    font-size: 13px;
    color: #4a7c59;
    font-weight: 500;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }

  .icon-btn:hover { background: #f5f5f3; }

  /* Date input */
  input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
  }

  /* --- Sidebar Card --- */
  .sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    position: sticky;
    top: 20px;
    display:grid;
  }

  .sidebar-card h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
  }

  .overview-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1;
  }

  .overview-name span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #777;
    margin-top: 1px;
  }

  .overview-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .overview-address {
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .overview-services {
      line-height: 1;
  }

  .overview-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f3f0;
    font-size: 13px;
  }

  .overview-service-item:last-child { border-bottom: none; }

  .check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e6f2ea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .check-icon svg { width: 10px; height: 10px; }

  .service-name { flex: 1; font-weight: 500; color: #222; }

  .service-meta { color: #888; font-size: 12px; }

  .overview-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 0 16px;
    border-top: 1.5px solid #eee;
    margin-top: 4px;
  }

  .total-label { font-size: 14px; font-weight: 500; color: #555; }

  .total-amount { font-size: 22px; font-weight: 700; color: #111; letter-spacing: -0.5px; }

  .discount-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }

  .discount-row input {
    flex: 1;
    color: #aaa;
  }

  .btn-apply {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
  }

  .btn-apply:hover { background: #f5f5f3; }

  .btn-confirm {
    width: 100%;
    padding: 13px;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.1px;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 12px;
  }

  .btn-confirm:hover { background: #3d6b4c; }
  .btn-confirm:active { transform: scale(0.99); }

  .notification-note {
    font-size: 11.5px;
    color: #999;
    line-height: 1.5;
    text-align: center;
  }

  .notification-note a { color: #4a7c59; text-decoration: none; }

  /* Divider */
  .form-divider {
    border: none;
    border-top: 1px solid #f0f0ec;
    margin: 20px 0;
    grid-column: 1 / -1;
  }
  .custom_services{
      display:flex;
  }
  .osf_add_services{
    display: inline-block;
    text-align: left;
    background-color: whitesmoke;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #c6c6c6;
    cursor:pointer;
  }

  @media (max-width: 800px) {
    .layout { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }
    .sidebar-card { position: static; }
  }

/* =============================================================
   USER BOOKINGS DASHBOARD
   ============================================================= */

/* Wrapper */
.osf-bookings-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  font-family: inherit;
}

/* Header row: title left, summary bar right */
.osf-bookings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.osf-bookings-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* Summary bar */
.osf-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 8px 18px;
  font-size: 13px;
  color: #374151;
}

.osf-summary-item strong {
  font-size: 15px;
  font-weight: 700;
  margin-right: 3px;
}

.osf-summary-upcoming strong { color: #ff8c02; }
.osf-summary-pending  strong { color: #d97706; }
.osf-summary-past     strong { color: #6b7280; }

.osf-summary-sep {
  color: #d1d5db;
  font-size: 16px;
  line-height: 1;
}

/* Scrollable table container */
.osf-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

/* Bookings table */
.osf-bookings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: #374151;
  background: #fff;
}

.osf-bookings-table thead tr {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.osf-bookings-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  white-space: nowrap;
}

.osf-bookings-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.osf-bookings-table tbody tr:last-child td {
  border-bottom: none;
}

.osf-bookings-table tbody tr:hover {
  background: #fdf7f0;
}

/* Status badges */
.osf-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.osf-status-pending  { background: #fef3c7; color: #92400e; }
.osf-status-accepted { background: #d1fae5; color: #065f46; }
.osf-status-rejected { background: #fee2e2; color: #991b1b; }

/* Reschedule count badge */
.osf-reschedule-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

/* Action buttons */
.osf-view-btn {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  margin-right: 6px;
  transition: background .15s, border-color .15s;
}

.osf-view-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111;
}

.osf-reschedule-btn {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ff8c02;
  background: #ff8c02;
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.osf-reschedule-btn:hover {
  background: #e67d00;
  border-color: #e67d00;
}

/* Reschedule modal overlay */
#osf-reschedule-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#osf-reschedule-modal.is-open {
  display: flex;
}

/* No-bookings row */
.osf-bookings-table td[colspan] {
  text-align: center;
  color: #9ca3af;
  padding: 32px 14px;
  font-size: 14px;
}

/* ---- Admin bookings table identical badge styles ---- */
.osf-bookings-table .osf-edit-btn {
  font-size: 12px;
  padding: 3px 10px;
}

/* Responsive */
@media (max-width: 680px) {
  .osf-bookings-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .osf-summary-bar {
    width: 100%;
    justify-content: space-between;
  }
}