@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@400;500;600&display=swap");

:root {
  --brand-blue: #1d557d;
  --brand-green: #54be9d;
  --bg: #f3f7fb;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --ink: #16324b;
  --muted: #5d6b7a;
  --accent: var(--brand-blue);
  --accent-soft: #e6f1f8;
  --success: var(--brand-green);
  --line: #dce5ee;
  --shadow: 0 18px 50px rgba(17, 45, 72, 0.12);
  --shadow-soft: 0 10px 24px rgba(17, 45, 72, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(84, 190, 157, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(29, 85, 125, 0.12) 0%, transparent 40%),
    linear-gradient(160deg, #f6fafc 0%, #eef6f3 100%);
}

#widget-root {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.ob-widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  position: relative;
  overflow: hidden;
  animation: widgetFade 320ms ease-out;
}

.ob-widget::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(84, 190, 157, 0.12);
  pointer-events: none;
}

.ob-widget::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -200px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(29, 85, 125, 0.08);
  pointer-events: none;
}

.ob-header {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ob-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ob-logo {
  width: 56px;
  height: 46px;
  border-radius: 14px;
  object-fit: contain;
  background: #f1f6fb;
  border: 1px solid #e1ecf5;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.ob-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ob-brand-line {
  font-size: 18px;
}

.ob-brand-european {
  color: var(--brand-green);
}

.ob-brand-eye {
  color: var(--brand-blue);
}

.ob-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.ob-lang-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ob-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.ob-lang-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}

.ob-lang-btn.is-active {
  background: rgba(29, 85, 125, 0.12);
  color: var(--accent);
}

.ob-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ob-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.ob-stepper {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.ob-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.ob-step.is-active {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

.ob-slots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ob-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.ob-day-button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ob-day-button span {
  font-size: 12px;
}

.ob-day-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ob-day-button.is-active {
  border-color: var(--accent);
  background: rgba(29, 85, 125, 0.08);
  box-shadow: var(--shadow-soft);
}

.ob-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-time-button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ob-time-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 85, 125, 0.25);
}

.ob-time-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.ob-day {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel-soft);
}

.ob-day-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.ob-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-slot {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ob-slot:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.ob-slot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 85, 125, 0.25);
}

.ob-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-form.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.ob-form h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.ob-row {
  display: grid;
  gap: 8px;
}

.ob-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-segment {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}

.ob-segment:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.ob-segment.is-active {
  border-color: var(--accent);
  background: rgba(29, 85, 125, 0.12);
}
.ob-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ob-row input,
.ob-row select,
.ob-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.ob-row input:focus,
.ob-row select:focus,
.ob-row textarea:focus {
  outline: none;
  border-color: rgba(29, 85, 125, 0.6);
  box-shadow: 0 0 0 3px rgba(29, 85, 125, 0.15);
}

.ob-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ob-help,
.ob-field-error {
  font-size: 12px;
  display: none;
}

.ob-help {
  color: var(--muted);
}

.ob-field-error {
  color: #9b2c2c;
}

.ob-help.is-visible,
.ob-field-error.is-visible {
  display: block;
}

.ob-button {
  background: linear-gradient(135deg, #1d557d 0%, #2474a6 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ob-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 85, 125, 0.3);
}

.ob-button.ob-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.ob-success-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ob-address {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 6px;
}

.ob-map-frame {
  border: 0;
  border-radius: 10px;
  width: 100%;
}

.ob-muted {
  color: var(--muted);
  font-size: 12px;
}

.ob-success {
  border: 1px dashed var(--success);
  border-radius: 18px;
  padding: 16px;
  background: rgba(84, 190, 157, 0.08);
}

.ob-success-simplified {
  display: grid;
  gap: 14px;
}

.ob-whatsapp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  padding: 14px 18px;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(29, 85, 125, 0.24);
}

.ob-code-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(29, 85, 125, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.ob-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ob-code-value {
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.ob-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ob-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
}

.ob-error {
  color: #9b2c2c;
  font-size: 12px;
}

@media (max-width: 900px) {
  .ob-widget {
    grid-template-columns: 1fr;
  }

  .ob-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .ob-code-row {
    align-items: stretch;
  }

  .ob-code-row .ob-button {
    width: 100%;
  }
}

@keyframes widgetFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
