/* =========================================================
   Maks plugin – in the MAKS Marina design (the WordPress theme's colours, type and shapes)
   - SAFE for the DevExtreme Scheduler: never sets width/left/right/transform on appointments
   - Everything is scoped to .maks-app (and the plugin's own popups), so the page's theme is not touched
   ========================================================= */

.maks-app,
.kb-popup-scope {
  --kb-blue: #0069b4;
  --kb-blue2: #004b83;
  --kb-navy: #071b32;
  --kb-cyan: #18a0df;
  --kb-bg: #f4f8fb;
  --kb-card: #ffffff;
  --kb-text: #172536;
  --kb-muted: #64748b;
  --kb-line: #dbe7ef;
  --kb-green: #22a06b;
  --kb-green-soft: rgba(34, 160, 107, .12);
  --kb-red: #c2410c;
  --kb-radius: 20px;
  --kb-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

/* =========================================================
   Layout and cards
   ========================================================= */

.maks-app {
  max-width: 1240px;
  margin: 0 auto;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--kb-text);
  font-size: 15px;
  line-height: 1.5;
}

.maks-app .kb-box {
  background: var(--kb-card);
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--kb-shadow);
}

.maks-app h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--kb-text);
}

.maks-app .kb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 900;
  font-size: 12px;
  color: var(--kb-blue);
}

.maks-app .kb-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* the welcome bar: the theme's hero (navy → blue) */
.maks-app .kb-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #071b32 0%, #063d6b 58%, #0070bd 100%);
  box-shadow: 0 20px 50px rgba(7, 27, 50, .18);
}

.maks-app .kb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 0%, rgba(255, 255, 255, .16), transparent 38%);
}

.maks-app .kb-hero > * { position: relative; }

.maks-app .kb-hero strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.maks-app .kb-hero div[style*="font-size:12px"] {
  margin-top: 2px !important;
  font-size: 14px !important;
  color: #aee5ff;
  opacity: 1 !important;
}

.maks-app .kb-hero > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================================================
   Buttons, inputs, select
   ========================================================= */

.maks-app button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--kb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--kb-blue2);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, border-color .15s, transform .05s;
}

.maks-app button:hover { border-color: #b9d3e6; background: #f6fbff; }
.maks-app button:active { transform: translateY(1px); }
.maks-app button:focus-visible { outline: 3px solid rgba(24, 160, 223, .35); outline-offset: 2px; }
.maks-app button:disabled { opacity: .5; cursor: default; }

/* the main actions: the theme's blue CTA */
.maks-app #kb-login-btn,
.maks-app #kb-crane-continue {
  border-color: var(--kb-blue);
  background: var(--kb-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 105, 180, .25);
}

.maks-app #kb-login-btn:hover,
.maks-app #kb-crane-continue:hover { background: var(--kb-blue2); border-color: var(--kb-blue2); }

/* buttons on the hero: white and translucent (as the theme's secondary hero button) */
.maks-app .kb-hero button {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: none;
}

.maks-app .kb-hero button:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); }

/* "Mine bookinger" and "Første ledige tid": white, the most used */
.maks-app .kb-hero #kb-mine-btn,
.maks-app .kb-hero #kb-first-available-btn {
  background: #fff;
  border-color: #fff;
  color: var(--kb-blue2);
}

.maks-app .kb-hero #kb-mine-btn:hover,
.maks-app .kb-hero #kb-first-available-btn:hover { background: #e4f5ff; }

.maks-app input,
.maks-app select {
  width: 100%;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid var(--kb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--kb-text);
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.maks-app input:focus,
.maks-app select:focus {
  outline: none;
  border-color: var(--kb-cyan);
  box-shadow: 0 0 0 4px rgba(24, 160, 223, .15);
}

.maks-app label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

/* =========================================================
   Login
   ========================================================= */

.maks-app .kb-login {
  max-width: 460px;
  margin: 24px auto;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.maks-app .kb-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--kb-blue), var(--kb-cyan));
}

.maks-app .kb-login-title { margin-bottom: 18px; }

.maks-app .kb-form {
  display: grid;
  gap: 8px;
}

.maks-app .kb-form input { max-width: none; margin-bottom: 8px; }
.maks-app .kb-form button { margin-top: 6px; width: 100%; padding: 14px 18px; font-size: 15px; }

.maks-app .kb-help {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--kb-muted);
}

/* =========================================================
   Crane choice
   ========================================================= */

.maks-app #kb-crane-status { color: var(--kb-muted); }

.maks-app #kb-crane-ui label {
  display: block;
  margin-bottom: 8px !important;
}

.maks-app #kb-crane-select { min-width: 0 !important; }

.maks-app #kb-crane-desc {
  margin-top: 14px !important;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--kb-bg);
  color: #334155;
  opacity: 1 !important;
}

.maks-app #kb-crane-desc:empty { display: none; }

.maks-app #kb-crane-hint { color: var(--kb-muted); opacity: 1 !important; }

/* =========================================================
   Scheduler (DevExtreme) in the theme's look
   ========================================================= */

.maks-app #kb-scheduler {
  background: #fff;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  box-shadow: var(--kb-shadow);
  overflow: hidden;
  padding: 6px;
}

.maks-app .dx-scheduler,
.maks-app .dx-widget { font-family: inherit; }

.maks-app .dx-scheduler-header {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--kb-line);
  box-shadow: none;
}

.maks-app .dx-scheduler-header-panel-cell,
.maks-app .dx-scheduler-time-panel-cell {
  color: var(--kb-muted);
  font-weight: 700;
}

.maks-app .dx-scheduler-header-panel-current-time-cell { color: var(--kb-blue); }

.maks-app .dx-scheduler-navigator .dx-button,
.maks-app .dx-scheduler-view-switcher .dx-button {
  border-radius: 10px;
}

.maks-app .dx-scheduler-view-switcher .dx-item-selected .dx-button,
.maks-app .dx-scheduler-view-switcher .dx-button-mode-contained.dx-state-selected {
  background: var(--kb-blue);
  color: #fff;
}

.maks-app .dx-scheduler-date-table-cell { border-color: #eef3f7; }

/* Always make cell positioning reliable */
.dx-scheduler-date-table-cell,
.dx-scheduler-all-day-table-cell {
  position: relative;
}

/* not bookable (outside the crane's opening hours, back in time): soft stripes */
.dx-scheduler-date-table-cell.kb-disabled-cell,
.dx-scheduler-all-day-table-cell.kb-disabled-cell {
  background-color: #f8fafc;
  background-image: repeating-linear-gradient(135deg, rgba(219, 231, 239, .9), rgba(219, 231, 239, .9) 3px, transparent 3px, transparent 9px);
  color: var(--kb-muted);
}

/* bookable: no background, a rounded slot block */
.dx-scheduler-date-table-cell.kb-available-cell,
.dx-scheduler-all-day-table-cell.kb-available-cell {
  background: transparent !important;
  cursor: pointer !important;
}

.dx-scheduler-date-table-cell .kb-cell-time,
.dx-scheduler-all-day-table-cell .kb-cell-time {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 160, 107, .12);
  border: 1px solid rgba(34, 160, 107, .22);
  border-radius: 10px;
  color: #157a52;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  z-index: 1; /* behind the bookings */
}

.dx-scheduler-date-table-cell.kb-available-cell:hover .kb-cell-time,
.dx-scheduler-all-day-table-cell.kb-available-cell:hover .kb-cell-time {
  background: rgba(34, 160, 107, .22);
  border-color: rgba(34, 160, 107, .45);
}

/* booked: no slot block */
.dx-scheduler-date-table-cell.kb-booked-cell .kb-cell-time,
.dx-scheduler-all-day-table-cell.kb-booked-cell .kb-cell-time {
  display: none !important;
}

.kb-hide { display: none !important; }

/* the bookings: the theme's blue (geometry untouched – DevExtreme positions them inline) */
.dx-scheduler-appointment {
  z-index: 10 !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.maks-app .dx-scheduler-appointment {
  background: linear-gradient(135deg, var(--kb-blue), var(--kb-cyan)) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 105, 180, .22) !important;
}

.maks-app .dx-scheduler-appointment.dx-state-hover { filter: brightness(1.05); }

/* others' bookings: only that the time is taken – quiet, so the free slots and the user's own stand out */
.maks-app .dx-scheduler-appointment.kb-appt-other {
  background: repeating-linear-gradient(135deg, #eef2f7 0 8px, #e6ecf3 8px 16px) !important;
  color: #475569 !important;
  box-shadow: inset 3px 0 0 #94a3b8 !important;
  border: 1px solid #cfd9e5 !important;
}

/* the content of a booking (appointmentTemplate): title and time, centred; on one line when the booking is short */
/* (day and week only: their bookings have a fixed size; the agenda's grow with the text) */
.maks-app .dx-scheduler-work-space-day .dx-scheduler-appointment,
.maks-app .dx-scheduler-work-space-week .dx-scheduler-appointment { container-type: size; }
.maks-app .dx-scheduler-appointment .dx-scheduler-appointment-content {
  padding: 0 !important;
  height: 100%;
}
.kb-appt {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
}
.kb-appt .kb-appt-title, .kb-appt .kb-appt-time { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kb-appt-taken {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  text-align: center;
}
.kb-appt-taken .kb-appt-title { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #475569; }
.kb-appt-taken .kb-appt-time { font-size: 11.5px; color: #64748b; opacity: 1; }
/* a small padlock (drawn, no icon font) */
.kb-appt-lock {
  position: relative;
  width: 9px;
  height: 7px;
  margin-top: 4px;
  border-radius: 2px;
  background: #94a3b8;
  flex: none;
}
.kb-appt-lock::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: -5px;
  width: 6px;
  height: 6px;
  border: 1.6px solid #94a3b8;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}
/* short bookings (e.g. 15 minutes): one line, the time after the title */
@container (max-height: 38px) {
  .kb-appt { flex-direction: row; align-items: center; column-gap: 6px; padding: 0 8px; }
  .kb-appt .kb-appt-time { font-size: 11px; }
}
@container (max-height: 22px) {
  .kb-appt .kb-appt-time, .kb-appt-lock { display: none; }
}

/* the user's own: the theme's blue with a light edge */
.maks-app .dx-scheduler-appointment.kb-appt-own {
  box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(0, 105, 180, .35) !important;
}

.dx-scheduler-work-space-month .dx-item-content.dx-scheduler-appointment-content {
  font-size: xx-small !important;
  line-height: 1.5em !important;
}

.dx-scheduler-work-space-month .dx-scheduler-appointment { position: relative !important; }
.dx-scheduler-work-space-month .dx-scheduler-work-space-month { padding: 1px !important; }
.dx-scheduler-work-space-month .dx-scheduler-appointment-content .kb-appt-title { font-weight: inherit !important; }
.dx-scheduler-work-space-month .dx-scheduler-appointment-content .kb-appt-time { font-size: inherit !important; }

.kb-appt-title { font-weight: 700; line-height: 1.1; }
.kb-appt-time { font-size: 12px; opacity: .9; line-height: 1.1; }

.dx-scheduler-month-view .dx-scheduler-appointment .dx-scheduler-appointment-content { padding: 4px 6px !important; gap: 1px; }

.dx-scheduler-agenda .dx-scheduler-appointment .dx-scheduler-appointment-content {
  align-items: flex-start;
  text-align: left;
  padding: 10px 12px !important;
}

/* =========================================================
   The booking form (DevExtreme popup)
   ========================================================= */

/* no "repeat" in the form */
.dx-scheduler-appointment-form .dx-switch { display: none !important; }
.dx-scheduler-appointment-form .dx-field-item:has(.dx-switch-wrapper) { display: none !important; }
.dx-appointment-form-switch.e2e-dx-scheduler-form-recurrence-switch { display: none !important; }

.dx-scheduler-appointment-popup .dx-overlay-content {
  border-radius: 20px !important;
  border: 1px solid #dbe7ef !important;
  box-shadow: 0 30px 90px rgba(7, 27, 50, .25) !important;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.dx-scheduler-appointment-popup .dx-popup-title {
  border-bottom: 1px solid #dbe7ef;
  background: linear-gradient(135deg, #071b32, #004b83);
  color: #fff;
}

.dx-scheduler-appointment-popup .dx-popup-title .dx-toolbar-label { font-weight: 800; }
.dx-scheduler-appointment-popup .dx-popup-title .dx-closebutton .dx-icon { color: #fff; }

.dx-scheduler-appointment-popup .dx-form-group-caption {
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #0069b4 !important;
  border-bottom-color: #dbe7ef !important;
}

.dx-scheduler-appointment-popup .dx-texteditor.dx-editor-outlined { border-radius: 12px; }

.dx-scheduler-appointment-popup .dx-popup-bottom .dx-button {
  border-radius: 12px !important;
  font-weight: 800;
  min-width: 110px;
}

.dx-scheduler-appointment-popup .dx-popup-bottom .dx-button-mode-contained.dx-button-default {
  background: #0069b4 !important;
  box-shadow: 0 10px 24px rgba(0, 105, 180, .25);
}

.dx-scheduler-appointment-popup .dx-popup-bottom .dx-button-mode-contained.dx-button-default.dx-state-hover { background: #004b83 !important; }

/* the booking's own popover (click a booking) */
#kb-appt-popover .dx-overlay-content,
.dx-popover-wrapper .dx-overlay-content:has(#kb-pop-del) {
  border-radius: 16px;
  border: 1px solid #dbe7ef;
  box-shadow: 0 18px 50px rgba(7, 27, 50, .18);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.kb-pop-row { display: flex; align-items: flex-start; gap: 10px; }
.kb-pop-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: #0069b4; flex: 0 0 auto; }
.kb-pop-main { flex: 1 1 auto; min-width: 0; }
.kb-pop-title { font-weight: 700; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-pop-time { font-size: 12px; opacity: .8; margin-top: 3px; }
.kb-pop-desc { font-size: 12px; opacity: .85; margin-top: 6px; max-height: 60px; overflow: auto; }
.kb-pop-del { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 6px; opacity: .75; }
.kb-pop-del:hover { background: rgba(0, 0, 0, .06); opacity: 1; }

/* =========================================================
   Mine bookinger (the user's own bookings)
   ========================================================= */

.maks-app .kb-mine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.maks-app .kb-mine-title { margin: 0; font-size: 24px; }

.maks-app .kb-mine-past {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kb-muted);
  cursor: pointer;
}

.maks-app .kb-mine-past input {
  width: 18px;
  height: 18px;
  max-width: none;
  padding: 0;
  margin: 0;
  accent-color: var(--kb-blue);
}

.maks-app .kb-mine-list { display: flex; flex-direction: column; gap: 10px; }

.maks-app .kb-mine-empty {
  padding: 28px 18px;
  border: 1px dashed var(--kb-line);
  border-radius: 16px;
  background: var(--kb-bg);
  color: var(--kb-muted);
  text-align: center;
}

.maks-app .kb-mine-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--kb-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.maks-app .kb-mine-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--kb-blue), var(--kb-cyan));
}

.maks-app .kb-mine-item.kb-mine-done { background: #fafbfc; }
.maks-app .kb-mine-item.kb-mine-done::before { background: #cbd5e1; }
.maks-app .kb-mine-item.kb-mine-done .kb-mine-day,
.maks-app .kb-mine-item.kb-mine-done .kb-mine-crane { color: var(--kb-muted); }

.maks-app .kb-mine-day { font-weight: 800; letter-spacing: -.01em; }
.maks-app .kb-mine-time { font-size: 14px; color: var(--kb-blue2); font-weight: 700; }
.maks-app .kb-mine-crane { font-weight: 700; }
.maks-app .kb-mine-desc { margin-top: 2px; font-size: 14px; color: var(--kb-muted); word-break: break-word; }

.maks-app .kb-mine-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e4f5ff;
  color: var(--kb-blue2);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.maks-app .kb-mine-note {
  display: inline-block;
  max-width: 240px;
  font-size: 13px;
  color: var(--kb-muted);
  text-align: right;
}

.maks-app .kb-mine-cancel {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.maks-app .kb-mine-cancel:hover { background: #fef2f2; border-color: #fca5a5; }

/* =========================================================
   Phones
   ========================================================= */

@media (max-width: 640px) {
  .maks-app .kb-box { padding: 18px; border-radius: 16px; }
  .maks-app .kb-hero { padding: 18px; }
  .maks-app .kb-hero > div:last-child { width: 100%; }
  .maks-app .kb-hero button { flex: 1 1 auto; }
  .maks-app .kb-login { padding: 24px; margin: 8px auto; }
  .maks-app .kb-mine-item { grid-template-columns: 1fr; gap: 6px; }
  .maks-app .kb-mine-note { max-width: none; text-align: left; }
}

/* Min side */
.kb-card { border: 1px solid rgba(127,127,127,.25); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.kb-card.kb-muted { opacity: .65; }
.kb-dl { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; gap: 4px 14px; margin: 8px 0 0; }
.kb-dl dt { opacity: .7; font-size: 13px; }
.kb-dl dd { margin: 0; }
.kb-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: rgba(127,127,127,.18); }
.kb-badge-aktiv { background: rgba(46,160,67,.18); }
.kb-badge-fremtidig { background: rgba(34,103,160,.2); }
@media (max-width: 560px) { .kb-dl { grid-template-columns: 1fr; gap: 0; } .kb-dl dt { margin-top: 8px; } }
.kb-badge-pending { background: rgba(217,119,6,.2); }
.kb-badge-applied { background: rgba(46,160,67,.18); }
.kb-badge-rejected { background: rgba(220,38,38,.15); }

/* the thin status bar and link buttons of the stand-alone shortcodes */
.maks-app .kb-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; }
.maks-app .kb-box.kb-status { padding: 10px 14px; }
.maks-app .kb-linkbtn { display: inline-block; padding: 6px 12px; border: 1px solid rgba(127,127,127,.35); border-radius: 8px; text-decoration: none; font-size: 14px; }
.maks-app .kb-linkbtn:hover { background: rgba(127,127,127,.12); }

/* =========================================================
   Min side: the member on top, tabs for the rest
   ========================================================= */
.maks-app .kb-profile { display: flex; gap: 18px; align-items: flex-start; padding: 4px 0 18px; border-bottom: 1px solid var(--kb-line); margin-bottom: 14px; }
.maks-app .kb-avatar { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--kb-blue), var(--kb-cyan)); }
.maks-app .kb-profile-main { flex: 1; min-width: 0; }
.maks-app .kb-profile-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.maks-app .kb-profile-sub { color: var(--kb-muted); font-size: 14px; margin-top: 2px; }
.maks-app .kb-profile-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 22px; margin: 14px 0 12px; }
.maks-app .kb-profile-facts div { min-width: 0; }
.maks-app .kb-profile-facts dt { color: var(--kb-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.maks-app .kb-profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.maks-app .kb-tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--kb-line); margin: 4px 0 14px; scrollbar-width: thin; }
.maks-app .kb-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; margin-bottom: -1px; font: inherit; font-weight: 600; color: var(--kb-muted); cursor: pointer; white-space: nowrap; }
.maks-app .kb-tab:hover { color: var(--kb-blue); }
.maks-app .kb-tab-on { color: var(--kb-blue); border-bottom-color: var(--kb-blue); }
.maks-app .kb-tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 12px; line-height: 20px; text-align: center; background: rgba(127, 127, 127, .16); color: inherit; }
.maks-app .kb-tab-wish { background: rgba(217, 119, 6, .22); color: #92400e; }
.maks-app .kb-tabpanel[hidden], .maks-app .kb-tab-count[hidden] { display: none; }
@media (max-width: 560px) { .maks-app .kb-profile { flex-direction: column; gap: 10px; } }
/* payment of a crane booking */
.kb-pay-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.kb-pay-box { background: #fff; color: #1f2937; border-radius: calc(var(--mg-radius, 10px) + 6px); padding: 26px 28px; max-width: 440px; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); line-height: 1.5; }
.kb-pay-box h3 { margin: 0 0 14px; font-size: 18px; }
.kb-pay-box p { margin: 0 0 10px; }
.kb-pay-amount { font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin: 14px 0 !important; }
.kb-pay-box .kb-help { color: #6b7280; font-size: 14px; }
.kb-pay-methods { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.kb-pay-method { display: flex; align-items: center; gap: 10px; border: 1px solid #c3ccd6; border-radius: var(--mg-radius, 10px); padding: 12px 14px; cursor: pointer; }
.kb-pay-method input { accent-color: var(--mg-accent, #0b6bcb); }
.kb-pay-method:has(input:checked) { border-color: var(--mg-accent, #0b6bcb); background: #eef5fd; }
.kb-pay-error { color: #b42318; background: #fdecea; border-radius: var(--mg-radius, 10px); padding: 10px 14px; margin: 10px 0; }
.kb-pay-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.kb-pay-go { background: var(--mg-accent, #0b6bcb); color: #fff; border: 0; border-radius: var(--mg-radius, 10px); padding: 14px 18px; font-size: 16px; font-weight: 600; cursor: pointer; }
.kb-pay-go:hover { filter: brightness(.94); }
.kb-pay-go:disabled { opacity: .6; cursor: default; }
.kb-pay-cancel { background: transparent; border: 0; color: #6b7280; padding: 8px 14px; cursor: pointer; text-decoration: underline; font-size: 14px; }
.kb-pay-result { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #eef2f7; }
.kb-pay-result.kb-pay-ok { background: #e7f6ec; color: #14532d; }
.kb-pay-result.kb-pay-bad { background: #fdecea; color: #7a271a; }
.kb-pay-overlay [hidden], .kb-pay-result[hidden], .kb-pay-methods[hidden] { display: none !important; }
