/**
 * OG Hemp Timed Grab & Connection Guard Styles
 * STRICTLY SCOPED to #oghemp-timed-grab-root (Rule 0.2 & 0.2.2)
 */

#oghemp-timed-grab-root.oghemp-timed-grab-wrap {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#oghemp-timed-grab-root .oghemp-timed-grab-card {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.16), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 22px 20px;
  box-sizing: border-box;
  animation: oghempGrabSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes oghempGrabSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#oghemp-timed-grab-root .oghemp-timed-grab-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#oghemp-timed-grab-root .oghemp-timed-grab-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

#oghemp-timed-grab-root .oghemp-timed-grab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf7ed;
  color: #1e4620;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

#oghemp-timed-grab-root .oghemp-timed-grab-title {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

#oghemp-timed-grab-root .oghemp-timed-grab-subtitle {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

#oghemp-timed-grab-root .oghemp-timed-grab-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#oghemp-timed-grab-root .oghemp-timed-grab-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#oghemp-timed-grab-root .oghemp-timed-grab-input:focus {
  border-color: #2e7d32;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

#oghemp-timed-grab-root .oghemp-timed-grab-submit {
  width: 100%;
  padding: 11px 16px;
  background: #2e7d32;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#oghemp-timed-grab-root .oghemp-timed-grab-submit:hover {
  background: #1b5e20;
}

#oghemp-timed-grab-root .oghemp-timed-grab-submit:active {
  transform: scale(0.98);
}

#oghemp-timed-grab-root .oghemp-timed-grab-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

#oghemp-timed-grab-root .oghemp-timed-grab-guarantee .lock-icon {
  color: #16a34a;
  flex-shrink: 0;
}

#oghemp-timed-grab-root .oghemp-timed-grab-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 600px) {
  #oghemp-timed-grab-root.oghemp-timed-grab-wrap {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  #oghemp-timed-grab-root .oghemp-timed-grab-card {
    max-width: 100%;
  }
}
