.tripok-ride-widget {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(7, 27, 53, 0.24);
  overflow: hidden;
}

.tripok-ride-widget * {
  box-sizing: border-box;
}

.tripok-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.95rem;
  border-bottom: 1px solid #e7edf5;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,250,252,.92));
}

.tripok-widget-head h3 {
  margin: 0.24rem 0 0;
  color: #071b35;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.tripok-widget-head p {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.tripok-kicker {
  color: #087f8c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tripok-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.64rem;
  border: 1px solid #c7f3ec;
  border-radius: 999px;
  background: #eefdfa;
  color: #087f8c;
  font-size: 0.72rem;
  font-weight: 900;
}

.tripok-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a78e;
}

.tripok-ride-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
  padding: 1rem 1.15rem 1.1rem;
}

.tripok-ride-card {
  min-height: 90px;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background: #fff;
  color: #102b4e;
  cursor: pointer;
  padding: 0.72rem;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tripok-ride-card:hover,
.tripok-choice-grid button:hover,
.tripok-vehicle-grid button:hover,
.tripok-model-grid button:hover {
  transform: translateY(-1px);
  border-color: #087f8c;
  box-shadow: 0 10px 26px rgba(8, 127, 140, 0.12);
}

.tripok-ride-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.46rem;
  border-radius: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.tripok-ride-card.blue span { background: #2563eb; }
.tripok-ride-card.green span { background: #059669; }
.tripok-ride-card.orange span { background: #f97316; }
.tripok-ride-card.purple span { background: #7c3aed; }
.tripok-ride-card.red span { background: #dc2626; }
.tripok-ride-card.pink span { background: #db2777; }

.tripok-ride-card strong,
.tripok-ride-card em {
  display: block;
}

.tripok-ride-card strong {
  font-size: 0.88rem;
  line-height: 1.18;
}

.tripok-ride-card em {
  margin-top: 0.22rem;
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.25;
}

.tripok-selected {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 1.15rem 0;
  padding: 0.82rem;
  border: 1px solid #ccebea;
  border-radius: 16px;
  background: #effdfa;
}

.tripok-selected.show {
  display: flex;
}

.tripok-selected span,
.tripok-selected em {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
}

.tripok-selected strong {
  display: block;
  color: #071b35;
  font-size: 1rem;
}

.tripok-selected button,
.tripok-locked-chip button {
  border: 0;
  border-radius: 999px;
  background: #087f8c;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0.5rem 0.8rem;
}

.tripok-flow {
  padding: 1rem 1.15rem 1.15rem;
}

.tripok-progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
}

.tripok-progress i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #dbe5f0;
}

.tripok-progress i.active {
  background: #087f8c;
}

.tripok-step-card,
.tripok-contact.show {
  padding: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.tripok-step-card h3,
.tripok-contact h3,
.tripok-quote h3 {
  margin: 0 0 0.8rem;
  color: #071b35;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.tripok-grid {
  display: grid;
  gap: 0.75rem;
}

.tripok-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tripok-field {
  display: block;
  min-width: 0;
}

.tripok-field > span {
  display: block;
  margin: 0 0 0.35rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.tripok-field input,
.tripok-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #071b35;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 0.76rem;
  outline: none;
}

.tripok-field input:focus,
.tripok-field select:focus {
  border-color: #087f8c;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.tripok-location-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.tripok-location-control button,
.tripok-location-panel-head button {
  min-height: 44px;
  border: 1px solid #bddde1;
  border-radius: 12px;
  background: #effdfa;
  color: #087f8c;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 0.82rem;
}

.tripok-location-control button:hover,
.tripok-location-panel-head button:hover {
  border-color: #087f8c;
  background: #dff8f5;
}

.tripok-location-chip {
  display: block;
  margin-top: 0.34rem;
  color: #087f8c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

.tripok-location-chip.muted {
  color: #94a3b8;
}

.tripok-location-panel {
  margin-top: 0.78rem;
  overflow: hidden;
  border: 1px solid #ccebea;
  border-radius: 16px;
  background: #f8fafc;
}

.tripok-location-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem;
  border-bottom: 1px solid #dbe5f0;
  background: #fff;
}

.tripok-location-panel-head strong,
.tripok-location-panel-head span {
  display: block;
}

.tripok-location-panel-head strong {
  color: #071b35;
  font-size: 0.9rem;
}

.tripok-location-panel-head span {
  margin-top: 0.16rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.tripok-location-map {
  width: 100%;
  height: 260px;
  background: #e6eef5;
}

.tripok-map-unavailable {
  min-height: 120px;
  padding: 1rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.tripok-location-panel-actions {
  display: flex;
  gap: 0.65rem;
  padding: 0.72rem;
  border-top: 1px solid #dbe5f0;
  background: #fff;
}

.tripok-time12 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.46rem;
}

.tripok-hint,
.tripok-progress-block p,
.tripok-quote-note {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.42;
}

.tripok-progress-block {
  margin-top: 0.8rem;
  padding: 0.88rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.tripok-progress-block:first-child {
  margin-top: 0;
}

.tripok-progress-block h4 {
  margin: 0 0 0.35rem;
  color: #102b4e;
  font-size: 0.96rem;
  line-height: 1.2;
}

.tripok-progress-block h4 span {
  color: #94a3b8;
  font-weight: 700;
}

.tripok-or {
  margin: 0.7rem 0;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.tripok-choice-grid,
.tripok-vehicle-grid,
.tripok-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tripok-vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tripok-choice-grid button,
.tripok-vehicle-grid button,
.tripok-model-grid button {
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
  color: #102b4e;
  cursor: pointer;
  padding: 0.72rem;
  text-align: left;
}

.tripok-choice-grid button.active {
  border-color: #087f8c;
  box-shadow: inset 0 0 0 1px #087f8c;
}

.tripok-choice-grid strong,
.tripok-vehicle-grid strong {
  display: block;
  font-size: 0.88rem;
}

.tripok-choice-grid span,
.tripok-vehicle-grid span,
.tripok-vehicle-grid small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.25;
}

.tripok-vehicle-grid em {
  display: inline-block;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  padding: 0.2rem 0.42rem;
}

.tripok-model-grid button {
  text-align: center;
  font-weight: 800;
}

.tripok-locked-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.64rem;
  padding: 0.72rem;
  border: 1px solid #ccebea;
  border-radius: 14px;
  background: #effdfa;
}

.tripok-locked-chip span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tripok-locked-chip strong {
  display: block;
  color: #071b35;
  font-size: 0.9rem;
}

.tripok-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #102b4e;
  font-weight: 800;
}

.tripok-contact {
  display: none;
  margin-top: 0.75rem;
}

.tripok-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.tripok-btn {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  padding: 0.76rem 0.98rem;
}

.tripok-btn.primary {
  flex: 1;
  background: linear-gradient(135deg, #087f8c, #065f68);
  color: #fff;
}

.tripok-btn.secondary {
  background: #eef3f8;
  color: #102b4e;
}

.tripok-btn.ghost {
  background: transparent;
  color: #64748b;
}

.tripok-btn.full {
  width: 100%;
  margin-top: 0.82rem;
}

.tripok-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.tripok-quote {
  display: none;
  margin: 0 1.15rem 1.15rem;
  padding: 1rem;
  border: 1px solid #f1d68a;
  border-radius: 18px;
  background: #fffbeb;
}

.tripok-quote.show {
  display: block;
}

.tripok-quote p {
  margin: -0.35rem 0 0.8rem;
  color: #64748b;
  font-size: 0.82rem;
}

.tripok-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 154, 22, 0.22);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
}

.tripok-quote-grid span,
.tripok-quote-grid strong {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(217, 154, 22, 0.18);
  color: #334155;
  font-size: 0.82rem;
}

.tripok-quote-grid strong {
  color: #071b35;
  text-align: right;
}

.tripok-quote-grid .total {
  color: #087f8c;
  font-size: 1.12rem;
}

.tripok-quote-note {
  margin-top: 0.78rem;
}

.tripok-message {
  display: none;
  margin: 0 1.15rem 1.15rem;
  padding: 0.75rem 0.82rem;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f5132;
  font-size: 0.84rem;
  font-weight: 800;
}

.tripok-message.show {
  display: block;
}

.tripok-message.error {
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 760px) {
  .tripok-widget-head,
  .tripok-selected,
  .tripok-actions,
  .tripok-locked-chip {
    align-items: stretch;
    flex-direction: column;
  }

  .tripok-ride-types,
  .tripok-grid.two,
  .tripok-choice-grid,
  .tripok-vehicle-grid,
  .tripok-model-grid,
  .tripok-quote-grid,
  .tripok-location-control,
  .tripok-location-panel-actions {
    grid-template-columns: 1fr;
  }

  .tripok-location-panel-actions {
    display: grid;
  }

  .tripok-status {
    width: fit-content;
  }

  .tripok-quote-grid strong {
    text-align: left;
  }
}
