
.checkout-wrapper {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.checkout-form {
  flex: 2;
}

.section-order-title {
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 500;
  margin: 2rem 0;
}

.mt-4 {
  margin-top: 2rem;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

.form-floating {
  position: relative;
  width: 100%;
}

.form-floating input {
  width: 100%;
  padding: 1.8rem 1.5rem;
  border: 1px solid #6B778A;
  border-radius: 1rem;
  font-size: 1.6rem;
  transition: border-color 0.2s;
}


.delivery-methods, .payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem;
  border: 1px solid #D3D7DC;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.method-card:hover {
  border-color: #2C2C2C;
}

.method-card.active {
  border-color: #2C2C2C;
  background: #F7F8F9;
}

.method-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.method-icon {
  width: 4.2rem;
  height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon img {
  max-width: 100%;
  max-height: 100%;
}

.method-name {
  font-size: 1.8rem;
  font-weight: 500;
}

.method-checkbox {
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid #D3D7DC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-card.active .method-checkbox {
  background: #2C2C2C;
  border-color: #2C2C2C;
}

.method-card.active .method-checkbox:after {
  content: "✓";
  font-weight: 600;
  color: white;
  font-size: 2rem;
}

.order-summary {
  height: fit-content;
  max-width: 38.2rem;
  flex: 1;
  background: #F7F8F9;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.order-label {
  font-size: 1.8rem;
  color: #6B778A;
}

.order-value {
  font-size: 1.8rem;
  font-weight: 500;
}

.total-row {
  border-top: 1px solid #E0E0E0;
  padding-top: 20px;
  margin-top: 20px;
}

.total-row .order-label {
  font-size: 20px;
  color: #2C2C2C;
}

.total-row .order-value {
  font-size: 2.4rem;
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  padding: 20px;
  background: #2C2C2C;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.checkout-btn:hover {
  background: #1A1A1A;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Стили для CDEK */
.cdek-delivery-block {
  margin-top: 2rem;
  padding: 2rem;
  background: #F7F8F9;
  border-radius: 1rem;
}

.delivery-type-selector {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.gap-4 {
  gap: 2rem;
}

.items-center {
  align-items: center;
}

.cursor-pointer {
  cursor: pointer;
}

.hidden {
  display: none;
}

.w-5 {
  width: 2rem;
  height: 2rem;
}

.border-2 {
  border-width: 2px;
}

.border-gray-300 {
  border-color: #D3D7DC;
}

.border-\[\#2C2C2C\] {
  border-color: #2C2C2C;
}

.rounded-full {
  border-radius: 50%;
}

.mr-2 {
  margin-right: 0.5rem;
}

.bg-\[\#2C2C2C\] {
  background-color: #2C2C2C;
}

.calculate-btn {
  width: 100%;
  padding: 1.5rem;
  background: #2C2C2C;
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.calculate-btn:hover:not(:disabled) {
  background: #1A1A1A;
}

.calculate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.calculation-result {
  margin-top: 2rem;
  /*padding: 2rem;*/
  border-radius: 1rem;
}

.success-result {
  background: #E8F5E9;
  border: 1px solid #4CAF50;
  padding: 1.5rem;
  border-radius: 1rem;
}

.error-result {
  background: #FFEBEE;
  border: 1px solid #F44336;
  color: #F44336;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.result-row:last-child {
  margin-bottom: 0;
}

select.form-control {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #D3D7DC;
  border-radius: 1rem;
  font-size: 1.6rem;
  background: white;
}

select.form-control:focus {
  outline: none;
  border-color: #2C2C2C;
}

@media (max-width: 768px) {
  .checkout-wrapper {
    flex-direction: column;
  }

  .order-summary {
    max-width: 100%;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }
}