/* Checkout-specific styles based on Pollen Robotics */

:root {
  --checkout-accent: #FF9D00;
  --checkout-background: #FFFFFF;
  --checkout-background-subdued: #F5F5F5;
  --checkout-border: #DEDEDE;
  --checkout-text: #000000;
  --checkout-text-subdued: #707070;
  --checkout-border-radius: 8px;
}

/* Header */
.checkout-header {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid #DEDEDE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.checkout-header-logo {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
}

.checkout-header-logo:hover {
  color: #FF9D00;
}

.checkout-back-link {
  font-size: 14px;
  color: #707070;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-back-link:hover {
  color: #000000;
}

/* Main Checkout */
.checkout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.checkout-title {
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 32px 0;
}

/* Two-column layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }
}

/* Form sections */
.checkout-section {
  margin-bottom: 32px;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #DEDEDE;
}

/* Form fields */
.checkout-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .checkout-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.checkout-form label span {
  font-size: 14px;
  color: #000000;
  font-weight: 500;
}

.checkout-form label .optional {
  color: #707070;
  font-weight: 400;
}

.checkout-form input,
.checkout-form select {
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #DEDEDE;
  border-radius: 8px;
  background: #FFFFFF;
  color: #000000;
  transition: all 0.15s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: #FF9D00;
  box-shadow: 0 0 0 3px rgba(255, 157, 0, 0.1);
}

.checkout-form input::placeholder {
  color: #707070;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: #FF9D00;
  color: #FFFFFF;
  width: 100%;
}

.btn-primary:hover {
  background: #E68D00;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #DEDEDE;
  cursor: not-allowed;
  transform: none;
}

.btn-wide {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  color: #FF9D00;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-btn:hover {
  color: #000000;
}

/* Error box */
.form-error {
  padding: 12px 16px;
  background: #FEECEC;
  border: 1px solid #D91C1C;
  border-radius: 8px;
  color: #C81919;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Secure note */
.secure-note {
  font-size: 13px;
  color: #707070;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.secure-note::before {
  content: "🔒";
  font-size: 12px;
}

/* Order Summary */
.summary {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 84px;
}

.summary h2 {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #DEDEDE;
}

.summary-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #DEDEDE;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #FFFFFF;
}

.summary-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-item-info div:first-child {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 4px;
}

.summary-item-info small {
  font-size: 13px;
  color: #707070;
}

.summary-item-info .item-price {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 2px solid #DEDEDE;
}

.summary-total span {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.summary-total strong {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.charge-note {
  font-size: 13px;
  color: #707070;
  margin: 12px 0;
  padding: 12px;
  background: #FAFBFF;
  border-radius: 8px;
  line-height: 1.5;
}

.edit-cart-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #DEDEDE;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: #707070;
}

.empty a {
  color: #FF9D00;
  text-decoration: underline;
}

/* Checkout title */
.checkout h1 {
  display: none;
}
