.woocommerce-checkout #content,
.woocommerce-checkout .entry-content {
  background: #f5f5f3;
}

.woocommerce-checkout .woocommerce,
.woocommerce-checkout article,
.woocommerce-checkout .entry-content > .woocommerce {
  background: transparent !important;
}

.snk-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 760px;
  width: min(100%, 1700px);
  margin: 0 auto;
  padding: 12px 10px 80px;
  box-sizing: border-box;
  background: transparent;
}

.snk-wrapper-coupon {
  display: block;
  max-width: 1680px;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 16px 8px 0;
  box-sizing: border-box;
}

.snk-coupon-form.woocommerce-form-coupon {
  margin: 0 auto 10px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 1680px !important;
  flex: 0 0 100% !important;
  align-self: stretch !important;
}

.snk-coupon-form.woocommerce-form-coupon::before,
.snk-coupon-form.woocommerce-form-coupon::after {
  display: none !important;
}

.snk-left {
  display: flex;
  flex-direction: column;
}

.snk-block-order { order: 1; }
.snk-block-delivery { order: 2; }
.snk-block-customer { order: 3; }
.snk-block-payment { order: 4; }

.snk-section {
  margin-bottom: 12px;
  padding: 20px 16px;
  border-radius: 16px;
  background: #fff;
}

.snk-coupon-section {
  width: 560px;
  max-width: 100%;
  margin: 0 auto 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(67, 160, 71, 0.45);
  box-shadow: 0 6px 18px rgba(67, 160, 71, 0.08);
}

.snk-coupon-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.snk-coupon-toggle {
  display: flex;
  align-items: center;
  margin-top: 0;
  padding: 0;
  border-top: none;
  min-height: 30px;
  font-size: 15px;
  justify-content: flex-start;
}

.snk-coupon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  color: transparent;
  font-size: 0 !important;
  line-height: 0;
  text-indent: -9999px;
  background: url('../images/kypon.svg') no-repeat center / 22px 22px;
}

.snk-coupon-icon::before {
  content: '';
}

.snk-coupon-body {
  display: none;
  padding-top: 10px;
}

.snk-coupon-toggle.is-open + .snk-coupon-body {
  display: block;
}

.snk-coupon-btn {
  height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4caf50, #1b5e20);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.snk-coupon-row .snk-input {
  height: 52px;
  margin-bottom: 0;
}

.snk-block-title {
  margin: 0 0 16px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
}

.snk-delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.snk-delivery-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 14px 10px;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  background: #f5f5f3;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.snk-delivery-btn:hover:not(.snk-active) {
  border-color: #bbb;
  background: #efefed;
}

.snk-delivery-btn.snk-active {
  background: #f0faf3;
  border: 2.5px solid #43a047;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.18);
  transform: scale(1.02);
}

.snk-delivery-btn.snk-active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #43a047;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.snk-btn-icon {
  margin-bottom: 6px;
  font-size: 28px;
}

.snk-btn-title {
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

.snk-delivery-btn.snk-active .snk-btn-title {
  color: #1b5e20;
}

.snk-btn-subtitle {
  margin-top: 2px;
  color: #aaa;
  font-size: 12px;
}

.snk-delivery-btn.snk-active .snk-btn-subtitle {
  color: #4caf50;
}

.snk-discount-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 20px;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.snk-discount-badge--hidden {
  display: none !important;
}

.snk-pickup-point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.snk-pickup-point:has(input:checked) {
  border-color: #43a047;
  background: #f0faf3;
  color: #1b5e20;
  font-weight: 600;
}

.snk-input.snk-field-error,
.snk-select.snk-field-error,
.snk-textarea.snk-field-error {
  border: 2px solid #e14b4b !important;
  box-shadow: 0 0 0 4px rgba(225, 75, 75, 0.14);
  background: #fff8f8;
}

#snk-datetime.snk-field-error,
.snk-datetime-input.snk-field-error,
input.flatpickr-input.snk-field-error {
  border: 2px solid #e14b4b !important;
  box-shadow: 0 0 0 4px rgba(225, 75, 75, 0.16) !important;
  background: #fff8f8 !important;
  color: #8f1d1d !important;
}

.snk-pickup-point.snk-field-error {
  border-color: #e14b4b !important;
  box-shadow: 0 0 0 4px rgba(225, 75, 75, 0.12);
  background: #fff8f8;
}

.snk-pickup-point input { display: none; }

.snk-radio-custom {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid #ccc;
  border-radius: 50%;
  transition: all 0.2s;
}

.snk-section #payment input[type='radio'],
.snk-native-review input[type='radio'],
.woocommerce-checkout input[type='radio'] {
  accent-color: #43a047;
}

.snk-pickup-point:has(input:checked) .snk-radio-custom {
  border-color: #43a047;
  background: #43a047;
  box-shadow: inset 0 0 0 4px #fff;
}

.snk-input,
.snk-textarea,
.snk-select {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin-bottom: 10px;
  padding: 0 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.snk-input:focus,
.snk-select:focus {
  border-color: #43a047;
}

.snk-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.snk-datetime-input {
  margin-top: 12px;
  background: #f0faf3;
  color: #1b5e20;
  font-weight: 600;
  cursor: pointer;
}

.snk-textarea {
  display: none;
  height: 0;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  resize: none;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.snk-textarea.snk-open {
  display: block;
  height: auto;
  max-height: 180px;
  padding: 14px 16px;
}

.snk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #333;
  font-size: 15px;
  cursor: pointer;
}

.snk-checkbox-row input { display: none; }

.snk-checkbox-custom {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
}

.snk-checkbox-row:has(input:checked) .snk-checkbox-custom {
  border-color: #43a047;
  background: #43a047;
}

.snk-checkbox-row:has(input:checked) .snk-checkbox-custom::after {
  content: '✓';
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.snk-notes-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  color: #333;
  font-size: 15px;
  cursor: pointer;
}

.snk-notes-switch {
  position: relative;
  width: 44px;
  height: 24px;
  margin-left: auto;
  border-radius: 999px;
  background: #d9d9d9;
  transition: background 0.25s ease;
}

.snk-notes-switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.snk-notes-toggle.is-open .snk-notes-switch {
  background: #43a047;
}

.snk-notes-toggle.is-open .snk-notes-switch-handle {
  transform: translateX(20px);
}

.snk-notes-toggle:not(.is-open) + .snk-textarea {
  display: none;
}

.snk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0ee;
  transition: opacity 0.2s;
}

.snk-item img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

.snk-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.snk-item-name {
  display: block;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.snk-item-qty {
  color: #aaa;
  font-size: 12px;
}

.snk-item-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.snk-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f8f6;
  flex-shrink: 0;
}

.snk-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #43a047;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.snk-qty-btn:hover:not(:disabled) {
  background: #e8f5e9;
}

.snk-qty-btn:active:not(:disabled) {
  background: #c8e6c9;
}

.snk-qty-btn:disabled,
.snk-qty-btn--disabled {
  color: #ccc;
  cursor: default;
  pointer-events: none;
}

.snk-qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0 2px;
  line-height: 26px;
}

.snk-item--loading {
  opacity: 0.5;
  pointer-events: none;
}

.snk-item--removing {
  opacity: 0.35;
}

.snk-item-price {
  color: #43a047;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  margin-left: auto;
}

.snk-item-price-old {
  color: #b0b8c1;
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
}

.snk-item-price-old bdi {
  text-decoration: inherit;
}

.snk-item-price-new {
  color: #43a047;
}

.snk-total-row-savings {
  color: #43a047;
  font-weight: 600;
}

.snk-expand-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 9px 14px;
  border: none;
  background: #f0faf3 !important;
  box-shadow: none !important;
  color: #43a047;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
}

.snk-expand-btn-small {
  padding-top: 6px;
  font-size: 13px;
}

.snk-chevron {
  display: inline-block;
  transition: transform 0.25s ease;
}

.snk-chevron.open {
  transform: rotate(90deg);
}

.snk-totals {
  margin-top: 12px;
}

.snk-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f3;
  color: #555;
  font-size: 14px;
}

.snk-total-row.is-hidden {
  display: none;
}

.snk-total-final {
  padding-top: 10px;
  border-bottom: none;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 700;
}

.snk-green {
  color: #43a047;
  font-weight: 600;
}

.snk-section #payment {
  background: transparent;
}

.snk-section #payment .payment_methods {
  padding: 0;
  border: none;
}

.snk-section #payment .payment_box {
  margin-top: 6px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.snk-section #payment .payment_box p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.snk-section #payment .woocommerce-privacy-policy-text {
  margin-top: 8px;
}

.snk-section #payment .place-order {
  padding: 0;
}

.snk-block-payment.snk-show-standard #payment #place_order {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.snk-block-payment.snk-hide-standard #payment #place_order {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.snk-section #payment #place_order {
  width: 100%;
  height: 56px;
  margin-top: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #4caf50, #1b5e20);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(67, 160, 71, 0.0), 0 10px 24px rgba(27, 94, 32, 0.18);
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  animation: snk-green-glow 2.8s ease-in-out infinite;
}

.snk-section #payment #place_order:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(67, 160, 71, 0.28), 0 12px 28px rgba(27, 94, 32, 0.24);
}

@keyframes snk-green-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(67, 160, 71, 0), 0 10px 24px rgba(27, 94, 32, 0.18);
  }
  50% {
    box-shadow: 0 0 22px rgba(67, 160, 71, 0.28), 0 12px 28px rgba(27, 94, 32, 0.22);
  }
}

.snk-native-review {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.snk-mobile-sticky-total {
  display: none;
}

.snk-items-list-collapsed {
  position: relative;
  overflow: hidden;
}

.snk-items-list-mobile.snk-items-list-collapsed {
  max-height: 162px;
}

.snk-items-list-desktop.snk-items-list-collapsed {
  max-height: 158px;
}

.snk-items-list-collapsed::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 72%);
  pointer-events: none;
}

.snk-items-list-collapsed.is-open {
  max-height: none;
}

.snk-items-list-collapsed.is-open::after {
  display: none;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  display: none !important;
}

@media (min-width: 900px) {
  .snk-coupon-form.woocommerce-form-coupon {
    display: block !important;
    width: min(100%, 1680px) !important;
    max-width: 1680px !important;
    margin: 0 auto 10px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

  .snk-wrapper {
    grid-template-columns: minmax(0, 1.35fr) 470px;
    gap: 28px;
    max-width: 1680px;
    width: calc(100% - 32px);
    padding: 24px 8px 40px;
    align-items: start;
  }

  .snk-right {
    display: block;
    position: sticky;
    top: 100px;
  }

  .snk-block-order {
    display: none;
  }

  .snk-items-list-mobile {
    display: none;
  }

  .snk-wrapper-coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) 470px !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    align-items: start !important;
  }

  .snk-coupon-section {
    grid-column: 1 / 2;
    justify-self: start !important;
    display: block !important;
    width: 560px !important;
    max-width: 560px !important;
    margin: 0 !important;
  }

  .snk-coupon-row {
    grid-template-columns: minmax(0, 1fr) 0.8fr;
    align-items: center;
  }
}

@media (max-width: 899px) {
  .snk-wrapper-coupon {
    width: calc(100% - 20px);
    padding: 8px 10px 0;
  }

  .snk-coupon-section {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
  }

  .snk-coupon-toggle {
    min-height: 26px;
    font-size: 14px;
  }

  .snk-coupon-row {
    gap: 8px;
  }

  .snk-coupon-btn {
    height: 48px;
    font-size: 14px;
  }

  .snk-right {
    display: none;
  }

  .snk-mobile-sticky-total {
    position: fixed;
    left: 12px;
    bottom: 78px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.08);
    backdrop-filter: blur(8px);
    font-size: 16px;
    font-weight: 700;
  }

  .snk-mobile-sticky-total__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0faf3;
    color: #43a047;
    font-size: 16px;
  }

  .snk-mobile-sticky-total__amount {
    color: #43a047;
    line-height: 1;
  }

  .snk-mobile-sticky-total__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
  }

  .snk-mobile-sticky-total__old {
    color: #a6a6a6;
    font-size: 11px;
    font-weight: 500;
    text-decoration: line-through;
  }

  .snk-section {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .snk-block-delivery,
  .snk-block-order,
  .snk-block-customer,
  .snk-block-payment {
    width: 100%;
    max-width: none;
  }

  .snk-section #payment .payment_box {
    padding: 8px 8px;
    margin-bottom: 6px;
  }

  .snk-section #payment .woocommerce-privacy-policy-text {
    margin-top: 6px;
  }
}

/* ── Блок итогов в боковой мини-корзине ───────────────────────────── */
.shopping-cart-widget-footer > .snk-mini-cart-totals {
  /* Перебиваем .cart-widget-side .shopping-cart-widget-footer > * { padding-inline: 15px } */
  padding-inline: 14px;
}

.snk-mini-cart-totals {
  margin: 12px 15px 14px;
  padding: 12px 14px;
  background: #f0faf3;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(67, 160, 71, 0.04);
  box-sizing: border-box;
}

.snk-mini-cart-totals .snk-total-row {
  border-bottom: 1px solid rgba(67, 160, 71, 0.15);
  padding: 5px 0;
  font-size: 13px;
}

.snk-mini-cart-totals .snk-total-row:last-of-type {
  border-bottom: none;
}

.snk-mini-cart-totals .snk-total-final {
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(67, 160, 71, 0.3);
  border-bottom: none;
  font-size: 16px;
}

