/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  background: #f9fafb;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========== HEADER ========== */
.sm-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sm-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .sm-header-inner {
    padding: 1rem 2rem;
    flex-wrap: nowrap;
  }
}

.sm-logo {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
  color: #1a1a1a;
}

.sm-logo span {
  margin-left: 0.5rem;
  font-weight: 400;
  color: #6b7280;
}

.sm-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.sm-cart-link:hover {
  background-color: #f3f4f6;
  color: #1a1a1a;
}

.sm-cart-link svg {
  width: 20px;
  height: 20px;
}

/* ========== MOBILE TIMER BANNER ========== */
.sm-mobile-timer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 65px;
  z-index: 50;
}

@media (min-width: 768px) {
  .sm-mobile-timer {
    display: none;
  }
}

.sm-mobile-timer svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6366f1;
}

.sm-mobile-timer p {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.sm-mobile-timer strong {
  color: #1a1a1a;
}

/* ========== MAIN LAYOUT ========== */
.sm-main {
  padding: 0;
}

.sm-checkout-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  min-height: calc(100vh - 65px);
}

@media (min-width: 768px) {
  .sm-checkout-layout {
    flex-wrap: nowrap;
  }
}

/* ========== LEFT COLUMN (FORM) ========== */
.sm-left {
  width: 100%;
  background: #ffffff;
  padding: 1rem 1rem 2rem;
  min-height: calc(100vh - 65px);
}

/* Mobile Order Summary Accordion */
.sm-mobile-order-summary {
  display: block;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  overflow: hidden;
}

@media (min-width: 768px) {
  .sm-mobile-order-summary {
    display: none;
  }
}

.sm-mobile-summary-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
}

.sm-mobile-summary-toggle:hover {
  background: #f9fafb;
}

.sm-mobile-summary-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sm-mobile-summary-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sm-mobile-summary-total {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
}

.sm-mobile-summary-arrow {
  width: 20px;
  height: 20px;
  color: #6b7280;
  transition: transform 0.2s;
}

.sm-mobile-summary-content {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.sm-mobile-summary-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.sm-mobile-summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.sm-mobile-summary-row:first-child {
  margin-top: 0;
}

.sm-mobile-summary-row span:last-child {
  color: #1a1a1a;
}

.sm-mobile-summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

.sm-mobile-summary-total-row {
  margin-top: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .sm-left {
    width: 55%;
    padding: 1.5rem 0 1.5rem 0;
  }
}

.sm-left .sm-form-container {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .sm-left .sm-form-container {
    margin-left: auto;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.sm-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sm-section {
  margin-bottom: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 1.5rem;
}

.sm-section:first-of-type {
  margin-top: 0;
}

/* Mobile: Reduce spacing between sections by 50% */
@media (max-width: 767px) {
  .sm-section {
    margin-top: 0.75rem;
    padding-bottom: 0.625rem;
  }
  
  .sm-section:first-of-type {
    margin-top: 0;
  }
}

.sm-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.sm-section h2 {
  margin: 0 0 0.25rem;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.sm-section-subtitle {
  margin: 0 0 1rem;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 400;
}

/* Fields */
.sm-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.875rem;
}

.sm-field label {
  font-size: 14px;
  margin-bottom: 0.375rem;
  color: #374151;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sm-field input {
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.875rem;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: all 0.2s ease;
  color: #1a1a1a;
  height: 40px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  letter-spacing: -0.01em;
  font-weight: 400;
}

.sm-field input:hover {
  border-color: #d1d5db;
}

.sm-field input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

.sm-field input::placeholder {
  color: #9ca3af;
}

/* Card input with icon */
.sm-card-input-wrapper {
  position: relative;
}

.sm-card-icon-left {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.sm-card-icon-right {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.sm-card-input {
  padding-left: 3rem !important;
}

.sm-card-input-fallback {
  padding-right: 3rem !important;
}

.sm-cvv-help {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.375rem;
  vertical-align: middle;
}

.sm-cvv-help svg {
  color: #6b7280;
}

.sm-help-icon {
  cursor: help;
}

.sm-field label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.sm-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

/* Checkbox */
.sm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.5rem;
  cursor: pointer;
}

/* Mobile: Reduce spacing after checkbox before next section */
@media (max-width: 767px) {
  .sm-checkbox {
    margin-bottom: 0.25rem;
  }
}

.sm-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.125rem;
  cursor: pointer;
  accent-color: #6366f1;
}

/* Shipping radio card */
.sm-radio-card {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.sm-radio-card:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.sm-radio-card input:checked + .sm-radio-content {
  color: #1a1a1a;
}

.sm-radio-card:has(input:checked) {
  border-color: #6366f1;
  background: #f0f4ff;
}

.sm-radio-card input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6366f1;
}

.sm-radio-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sm-radio-sub {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.sm-radio-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Payment method option (radio style) */
.sm-payment-method-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}

.sm-payment-method-option:last-child {
  margin-bottom: 0;
}

.sm-payment-method-option:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.sm-payment-method-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  cursor: pointer;
  accent-color: #000000;
  flex-shrink: 0;
}

.sm-payment-method-option:has(input:checked) {
  border-color: #000000;
  background: #ffffff;
}

.sm-payment-method-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sm-payment-method-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.sm-payment-method-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-payment-method-logo-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.sm-klarna-logo {
  width: auto;
  height: 28px;
  min-width: 100px;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

/* Payment method card (for card form) */
.sm-payment-method-card {
  border-radius: 0.5rem;
  border: 2px solid #000000;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.sm-payment-method-card:hover {
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

.sm-payment-form-container {
  display: none;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.sm-payment-method-option:has(input[value="card"]:checked) ~ .sm-payment-form-container {
  display: block;
}

/* Klarna Redirection Notice */
.sm-klarna-redirect-notice {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.sm-klarna-redirect-icon {
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-klarna-redirect-icon svg {
  width: 48px;
  height: 32px;
  display: block;
}

.sm-klarna-redirect-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
  margin: 0;
  max-width: 100%;
}

.sm-payment-form-content {
  border: none;
  background: transparent;
  padding: 0;
}

.sm-payment-method-header {
  padding: 1rem;
}

.sm-payment-method-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sm-payment-method-title-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sm-payment-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #ffffff;
  position: relative;
  flex-shrink: 0;
}

.sm-payment-radio-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000000;
}

.sm-payment-method-title-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sm-payment-method-cards {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-card-logo {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
  min-width: 2rem;
  text-align: center;
}

.sm-card-logo-img {
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.sm-payment-form-content {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1.25rem;
}

.sm-payment-form-content .sm-field {
  margin-bottom: 1rem;
}

.sm-payment-form-content .sm-field:last-child {
  margin-bottom: 0;
}

/* Pay now button */
.sm-pay-btn {
  margin-top: 1.5rem;
  margin-bottom: 0;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  background: #000000;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

@media (min-width: 768px) {
  .sm-pay-btn {
    box-shadow: none;
  }
}

.sm-pay-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.9);
}

.sm-pay-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.sm-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #000000;
}

.sm-btn-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* Secure payment message */
.sm-secure-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.sm-secure-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.btn-text-loading {
  display: none;
}

.sm-pay-btn.loading .btn-text-default {
  display: none;
}
.sm-pay-btn.loading .btn-text-loading {
  display: inline;
}

/* Message */
.sm-message {
  margin-top: 0;
  font-size: 0.85rem;
  min-height: 1.3rem;
}

.sm-message.success {
  color: #16a34a;
}
.sm-message.error {
  color: #dc2626;
}

/* ========== RIGHT COLUMN (SUMMARY) ========== */
.sm-right {
  width: 100%;
  border-left: 1px solid #e5e7eb;
  background: #f9fafb;
  min-height: calc(100vh - 65px);
  display: none;
}

@media (min-width: 768px) {
  .sm-right {
    display: block;
    width: 45%;
  }
}

.sm-sidebar-content {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 510px;
  margin-left: auto;
  margin-right: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #f9fafb;
}

.sm-timer-banner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid #c7d2fe;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.sm-timer-banner:hover {
  border-color: #a5b4fc;
}

.sm-timer-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6366f1;
}

.sm-timer-banner p {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.sm-timer-banner strong {
  color: #1a1a1a;
}

/* Summary card */
.sm-summary-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.sm-summary-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Order items */
.sm-order-item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-bottom: 0.625rem;
}

.sm-order-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: visible;
  flex-shrink: 0;
}

.sm-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-order-quantity {
  position: absolute;
  right: -4px;
  top: -4px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 9999px;
  background: rgba(75, 85, 99, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sm-order-quantity-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 9999px;
  background: rgba(75, 85, 99, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sm-order-info-wrapper {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
}

.sm-order-info {
  flex: 1;
  min-width: 0;
}

.sm-order-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  margin: 0 0 0.25rem;
}

.sm-order-variant {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

.sm-order-variant strong {
  color: #374151;
  font-weight: 600;
}

.sm-order-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.sm-order-unit-price {
  display: block;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.sm-order-unit-price strong {
  color: #374151;
  font-weight: 600;
  margin-right: 0.25rem;
}

.sm-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.sm-quantity-label {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.sm-quantity-label strong {
  color: #374151;
  font-weight: 600;
  margin-right: 0.25rem;
}

.sm-quantity-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.125rem;
}

.sm-quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.sm-quantity-btn:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

.sm-quantity-btn:active {
  background: #e5e7eb;
  transform: scale(0.95);
}

.sm-quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sm-quantity-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}

.sm-cart-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
}

.sm-cart-empty p {
  margin: 0;
  font-size: 0.875rem;
}

.sm-variant-selector {
  font-size: 0.875rem;
  color: #1a1a1a;
  margin: 0.25rem 0 0 0;
  padding: 0.375rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  max-width: 100%;
  font-family: inherit;
}

.sm-variant-selector:hover {
  border-color: #10b981;
}

.sm-variant-selector:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.sm-variant-selector option {
  padding: 0.5rem;
}

.sm-order-price {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.sm-order-price-total {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1a1a1a;
}

.sm-order-price-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
}

/* Discount code */
.sm-discount-code {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.sm-discount-input {
  flex: 1;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  height: 40px;
  outline: none;
  transition: all 0.2s;
}

.sm-discount-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.sm-discount-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 0.875rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.sm-discount-btn:hover:not(:disabled) {
  background: #e5e7eb;
}

.sm-discount-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Summary breakdown */
.sm-summary-breakdown {
  margin-top: 1rem;
}

.sm-summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.sm-summary-row:first-child {
  margin-top: 0;
}

.sm-summary-row span:last-child {
  color: #1a1a1a;
}

.sm-summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

.sm-summary-total {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a1a1a;
  padding-top: 0;
}

/* Trust badges */
.sm-trust-badges {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.sm-trust-badges-mobile {
  display: block;
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .sm-trust-badges-mobile {
    display: none;
  }
}

.sm-trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .sm-trust-badge {
    padding: 0;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .sm-trust-badge:last-child {
    margin-bottom: 0;
  }
}

.sm-trust-badge:hover {
  background-color: #f9fafb;
}

@media (min-width: 768px) {
  .sm-trust-badge:hover {
    background-color: transparent;
  }
}

.sm-trust-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .sm-trust-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.25rem;
  }
}

.sm-trust-badge h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  margin: 0 0 0.25rem;
}

@media (min-width: 768px) {
  .sm-trust-badge h3 {
    font-size: 0.875rem;
    color: #374151;
    margin: 0 0 0.125rem;
  }
}

.sm-trust-badge p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .sm-trust-badge p {
    font-size: 0.75rem;
    margin-top: 0;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 959px) {
  .sm-checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm-right {
    order: -1;
  }

  .sm-left {
    margin-top: 0.5rem;
  }
}

/* Language Selector - Dropdown Style */
.sm-language-selector {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.sm-language-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  min-width: 80px;
}

.sm-language-current:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.sm-language-current[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sm-language-current[aria-expanded="true"] .sm-language-arrow {
  transform: rotate(180deg);
}

.sm-language-arrow {
  transition: transform 0.2s;
  margin-left: 4px;
}

.sm-language-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: none;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: -1px;
  min-width: 80px;
  max-height: 280px;
  overflow-y: auto;
}

.sm-language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: background 0.2s;
  text-align: left;
}

.sm-language-option:hover {
  background: #f9fafb;
}

.sm-language-option.active {
  background: #eff6ff;
  color: #1e40af;
}

.sm-flag-emoji {
  font-size: 18px;
  line-height: 1;
}

.sm-flag-code {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .sm-language-selector {
    bottom: 15px;
  }
  
  .sm-language-current {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 70px;
  }
  
  .sm-language-option {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .sm-flag-emoji {
    font-size: 16px;
  }
  
  .sm-flag-code {
    font-size: 12px;
  }
}

/* Order Confirmation Popup */
.sm-order-confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sm-order-confirmation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.sm-order-confirmation-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  z-index: 10001;
}

.sm-order-confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.sm-order-confirmation-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

.sm-order-confirmation-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.sm-order-confirmation-details {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: left;
}

.sm-order-confirmation-greeting {
  font-size: 1.125rem;
  color: #1f2937;
  margin: 0 0 1rem;
  font-weight: 500;
}

.sm-order-confirmation-greeting strong {
  color: #6366f1;
  font-weight: 600;
}

.sm-order-number-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sm-order-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.25rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
}

.sm-order-items-container {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.sm-order-items-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sm-order-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sm-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.sm-order-item-name {
  flex: 1;
  color: #1f2937;
  font-weight: 500;
  font-size: 0.9375rem;
}

.sm-order-item-qty {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 1rem;
}

.sm-order-item-price {
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9375rem;
}

.sm-order-confirmation-message {
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.sm-order-confirmation-button {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sm-order-confirmation-button:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.sm-order-confirmation-button:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .sm-order-confirmation-content {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .sm-order-confirmation-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
  }
  
  .sm-order-confirmation-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .sm-order-confirmation-title {
    font-size: 1.5rem;
  }
  
  .sm-order-confirmation-message {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }
  
  .sm-order-confirmation-button {
    padding: 10px 24px;
    font-size: 0.9375rem;
  }
}

/* Thank You Screen */
.sm-thank-you-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.sm-thank-you-content {
  text-align: center;
  padding: 2rem;
}

.sm-thank-you-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.02em;
  animation: slideUp 0.5s ease-out;
}

@media (max-width: 767px) {
  .sm-thank-you-title {
    font-size: 2.25rem;
  }
}