/* OptiWake Replay v4 embedded geometry stable v3 */

.ow-replay-v4-embedded {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  padding: 0;
  color: #0f172a;
  font-family: inherit;
}

#ow-replay-v4-embedded {
  max-width: 520px !important;
}

.ow-rv4e-card {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
  overflow: hidden;
}

.ow-rv4e-header {
  padding: 12px 14px 9px;
  border-bottom: 1px solid #e2e8f0;
}

.ow-rv4e-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 21px;
  font-weight: 900;
}

.ow-rv4e-sub {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ow-rv4e-section {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.ow-rv4e-title {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
}

.ow-rv4e-select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 0 9px;
  box-sizing: border-box;
}

.ow-rv4e-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.ow-rv4e-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.ow-rv4e-btn {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #075985;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.ow-rv4e-btn.primary {
  background: #0057b8;
  border-color: #0057b8;
  color: #fff;
}

.ow-rv4e-btn.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.ow-rv4e-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 800;
}

.ow-rv4e-check input {
  width: 15px;
  height: 15px;
}

.ow-rv4e-time {
  width: 100%;
  margin-top: 8px;
}

.ow-rv4e-time-row {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 11px;
  margin-top: 4px;
}

.ow-rv4e-status {
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
}

/* Marker Replay v4.
   Punkt GPS / koniec wake jest przy rufie łódki.
   SVG łódki obraca się wokół rufy.
   Etykieta jest osobno i zawsze poziomo.
*/
.ow-rv4e-boat-icon {
  background: transparent !important;
  border: 0 !important;
}

.ow-rv4e-marker {
  position: relative;
  width: 48px;
  height: 60px;
  pointer-events: none;
}

.ow-rv4e-boat-svg {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 32px;
  height: 42px;
  transform: rotate(var(--ow-heading, 0deg));
  transform-origin: 16px 34px;
  filter: drop-shadow(0 2px 5px rgba(15,23,42,.30));
}

.ow-rv4e-sail {
  transform: rotate(var(--ow-sail, 28deg));
  transform-origin: 16px 14px;
}

.ow-rv4e-label {
  position: absolute;
  left: 24px;
  top: -2px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: rgba(255,255,255,.94);
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15,23,42,.16);
  z-index: 5;
}
