/* Beach Deal Demo styles */

.bd-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
}

/* QR Code */
.bd-qr {
  text-align: center;
  margin-bottom: 24px;
}
.bd-qr-box {
  display: inline-block;
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  line-height: 0;
}
.bd-qr-overlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  cursor: pointer;
}
.bd-qr svg {
  width: 180px;
  height: 180px;
  display: block;
}
.bd-qr-label {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}
.bd-qr-label a {
  color: #93c5fd;
  text-decoration: none;
}

/* Product list */
.bd-products {
  border-top: 1px solid #f3f4f6;
}
.bd-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.bd-product-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}
.bd-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bd-product-info {
  flex: 1;
  min-width: 0;
}
.bd-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-product-detail {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.bd-product-price {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  flex-shrink: 0;
}

/* Totals */
.bd-totals {
  padding: 12px 0 0;
  font-size: 13px;
}
.bd-totals-row {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  margin-bottom: 4px;
}
.bd-totals-row.discount {
  color: #16a34a;
  font-weight: 500;
}
.bd-totals-row.total {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

/* Status */
.bd-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  margin: 16px 0;
}
.bd-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  animation: bd-pulse 1.5s ease-in-out infinite;
}
@keyframes bd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.bd-status.opened {
  color: #d97706;
}
.bd-status.opened .bd-status-dot {
  background: #f59e0b;
}
.bd-status.claimed {
  color: #16a34a;
}
.bd-status.claimed .bd-status-dot {
  background: #16a34a;
  animation: none;
}

/* Persona footer */
.bd-persona {
  font-size: 11px;
  color: #d1d5db;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  line-height: 1.8;
}
.bd-persona a {
  color: #93c5fd;
  text-decoration: none;
}

/* Customer page header */
.bd-header {
  margin-bottom: 20px;
}
.bd-header h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.bd-header p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* Claim form */
.bd-form {
  margin-top: 20px;
}
.bd-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  margin-bottom: 10px;
}
.bd-form input[type="email"]:focus {
  border-color: #465A64;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.bd-form button {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.bd-form button:active {
  background: #374151;
}

/* Claimed confirmation */
.bd-claimed {
  text-align: center;
  padding: 20px 0;
}
.bd-claimed-check {
  font-size: 32px;
  margin-bottom: 8px;
}
.bd-claimed h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.bd-claimed p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 16px;
}
.bd-code-box {
  display: inline-block;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 20px;
}
.bd-code-box small {
  display: block;
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bd-code-box strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #111;
}
