:root {
  --accent-color: #000000;
  /* Shopify default black/blue */
  --btn-color: #000000;
  --btn-hover: #333333;
  --input-border: #d9d9d9;
  --input-focus: #000000;
  --sidebar-bg: #fafafa;
  --border-color: #e6e6e6;
  --text-color: #333333;
  --text-secondary: #737373;
  --error-color: #ff6d6d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: var(--text-color);
  line-height: 1.3em;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: column-reverse;
  min-height: 100vh;
}

@media (min-width: 1000px) {
  .layout {
    flex-direction: row;
  }
}

/* Main Content (Left) */
.main-content {
  flex: 1;
  padding: 20px;
  background: #fff;
  max-width: 100%;
}

@media (min-width: 1000px) {
  .main-content {
    width: 58%;
    padding: 50px 5% 20px 10%;
    border-right: 1px solid var(--border-color);
  }
}

/* Sidebar (Right) */
.sidebar {
  background: var(--sidebar-bg);
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1000px) {
  .sidebar {
    width: 42%;
    padding: 50px 10% 20px 5%;
    height: 100vh;
    position: sticky;
    top: 0;
    border-bottom: none;
    border-left: 1px solid var(--border-color);
  }
}

/* Typography */
h1.logo {
  font-size: 28px;
  margin-bottom: 20px;
  color: #000;
}

h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #333;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.breadcrumb-item.active {
  font-weight: 600;
  color: #333;
}

.chevron {
  margin: 0 8px;
  font-size: 10px;
}

/* Forms */
.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 15px;
}

.login-link {
  font-size: 14px;
}

.login-link a {
  color: var(--accent-color);
  text-decoration: none;
}

.form-group {
  margin-bottom: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row .input-field {
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.2s ease-in-out;
  outline: none;
}

.input-field:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 1px var(--input-focus);
}

.input-field::placeholder {
  color: var(--text-secondary);
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 10px auto;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Buttons */
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  flex-direction: row-reverse;
}

.btn-primary {
  background: var(--btn-color);
  color: white;
  padding: 18px 28px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.return-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
}

.return-link:hover {
  text-decoration: underline;
}

/* Sidebar Items */
.product-list {
  margin-bottom: 20px;
}

.item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.item-image-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  margin-right: 15px;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.item-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(115, 115, 115, 0.9);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.item-info {
  flex: 1;
}

.item-title {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.item-variant {
  font-size: 12px;
  color: var(--text-secondary);
}

.item-price {
  font-size: 14px;
  font-weight: 500;
}

/* Promo Code */
.promo-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(175, 175, 175, 0.34);
}

.btn-secondary {
  padding: 13px 20px;
  background: #c8c8c8;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #b0b0b0;
}

/* Totals */
.totals-section {
  color: var(--text-secondary);
  font-size: 14px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.total-row.final-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(175, 175, 175, 0.34);
  font-size: 16px;
  color: #333;
  align-items: center;
}

.total-amount {
  font-size: 24px;
  font-weight: 600;
}

.currency {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
  margin-right: 10px;
}

/* Footer */
.footer-links {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Loading/Payment */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}