* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f7fafc;
  color: #1f2937;
}

/* HEADER */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 80px;
  background: linear-gradient(to right, #50d2c2, #0bc2cf);
}

.banner-text {
  font-family: 'Titan One', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  color: white;
}

.banner-logo {
  max-height: 48px;
}

/* LAYOUT */
.wrapper {
  max-width: 820px;
  margin: 48px auto;
  padding: 0 24px;
}

.block {
  margin-bottom: 36px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(0,0,0,0.15);
  border-top: 4px solid #2b019d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 16px auto;
}
.hidden {
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* INPUTS */
input, select {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.input-row input {
  flex: 1;
}

.test-url-btn:hover {
  background: #f9fafb;
}

input:focus, select:focus {
  outline: none;
  border-color: #0bc2cf;
}

/* HELP TOOLTIP */
.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help {
  width: 18px;
  height: 18px;
  background: #0bc2cf;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.help-bubble {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  width: 220px;
  display: none;
}

.help:hover .help-bubble {
  display: block;
}

.wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.coffee {
  display: flex;                /* flexible container */
  justify-content: flex-end;    /* default: right-aligned */
  flex-wrap: wrap; /* allows button to drop to next line if needed */
  width: 100%;
  margin-bottom: 16;
  gap: 12px; /* optional spacing if multiple elements */
  padding: 0; /* remove rigid padding that causes overlap */
}

.coffee iframe,
.coffee a,
.coffee button {
  flex: 1 1 auto;               /* flexible width to shrink/grow */
  max-width: 300px;             /* prevents huge buttons */
  min-width: 140px;             /* optional: keeps button readable */
  display: block;               /* proper block behavior */
  box-sizing: border-box;
}

/* Mid-size screens: tablets, split screen, etc. */
@media (max-width: 900px) {
  .coffee {
    justify-content: center;     /* center button if not enough room */
  }
}

/* Small mobile screens */
@media (max-width: 500px) {
  .coffee button {
    width: 100%;                /* full-width button */
    max-width: none;            /* ignore previous max-width */
  }
}

/* DESCRIPTION */
.desc {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
}

/* SLIDER */
.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

input[type="range"] {
  flex: 1;
  accent-color: #0bc2cf;
}

.time {
  font-weight: 500;
}

/* CTA */
.cta {
  text-align: center;
  margin: 48px 0;
}

button {
  background: linear-gradient(to right, #50d2c2, #0bc2cf);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 18px;
  font-family: 'Titan One', sans-serif;
  border-radius: 14px;
  cursor: pointer;
}

button:hover {
  opacity: 0.95;
}

/* FOOTER and DISCLAIMER */
footer {
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-size: 14px;
}
