/* Checkout Hero Section */
.checkout-hero-section {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  overflow: hidden;
}

.checkout-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(238,66,102,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(238,66,102,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.checkout-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.7));
  z-index: 1;
}

.checkout-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.checkout-hero-subtitle {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8c92a0;
  margin-bottom: 20px;
}

.checkout-hero-title {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #25262a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.checkout-hero-description {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: #8c92a0;
  margin: 0;
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e5e5, transparent);
  margin: 0;
}

/* Checkout Section */
.checkout-section {
  padding: 80px 0;
  background-color: #fff;
}

/* Checkout Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #25262a;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-title span[class^="icon-"] {
  font-size: 22px;
  color: #ee4266;
}

/* Order Summary Section */
.order-summary-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.order-items {
  margin-bottom: 25px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.order-items::-webkit-scrollbar {
  width: 6px;
}

.order-items::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.order-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:first-child {
  padding-top: 0;
}

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

.order-item-image {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-quantity {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ee4266;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(238,66,102,0.3);
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
  color: #25262a;
  margin-bottom: 5px;
  line-height: 1.4;
}

.item-variant {
  font-size: 12px;
  color: #8c92a0;
  margin: 3px 0 5px 0;
  text-transform: capitalize;
}

.item-price {
  font-size: 15px;
  font-weight: 600;
  color: #ee4266;
  margin: 0;
}

/* Order Totals */
.order-totals {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
}

.total-label {
  color: #666;
  font-weight: 400;
}

.total-value {
  color: #25262a;
  font-weight: 500;
}

.discount-value {
  color: #27ae60;
}

.total-final {
  border-top: 2px solid #f0f0f0;
  margin-top: 10px;
  padding-top: 20px;
}

.total-final .total-label {
  font-size: 18px;
  font-weight: 600;
  color: #25262a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.total-final .total-value {
  font-size: 24px;
  font-weight: 700;
  color: #ee4266;
}

/* Coupon Section */
.coupon-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.coupon-form {
  margin-top: 20px;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.coupon-input:focus {
  outline: none;
  border-color: #ee4266;
  box-shadow: 0 0 0 3px rgba(238,66,102,0.1);
}

.btn-apply-coupon {
  padding: 12px 24px;
  background: #ee4266;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-apply-coupon:hover {
  background: #d63854;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238,66,102,0.3);
}

.btn-apply-coupon:disabled {
  background: #27ae60;
  cursor: not-allowed;
  transform: none;
}

.coupon-success,
.coupon-error {
  margin-top: 12px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.coupon-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Checkout Form */
.checkout-form-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #25262a;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title span[class^="icon-"] {
  font-size: 26px;
  color: #ee4266;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #25262a;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.required {
  color: #ee4266;
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #25262a;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #ee4266;
  box-shadow: 0 0 0 3px rgba(238,66,102,0.1);
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.payment-method {
  position: relative;
}

.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method label {
  display: block;
  padding: 20px 25px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.payment-method input[type="radio"]:checked + label {
  border-color: #ee4266;
  background: #fff5f7;
  box-shadow: 0 4px 15px rgba(238,66,102,0.15);
}

.payment-method label:hover {
  border-color: #ee4266;
  transform: translateY(-2px);
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.payment-method-header span[class^="icon-"] {
  font-size: 24px;
  color: #ee4266;
}

.payment-method-header .payment-logo {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.payment-method-title {
  font-size: 16px;
  font-weight: 600;
  color: #25262a;
}

.payment-method-desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  padding-left: 36px;
}

/* Payment Disabled State */
.payment-method.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.payment-method.disabled label {
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #ddd !important;
}

.payment-method.disabled label:hover {
  transform: none;
  border-color: #ddd !important;
}

.payment-method.disabled input[type="radio"] {
  cursor: not-allowed;
}

.payment-unavailable-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #ffc107;
  color: #856404;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.payment-method.payment-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.payment-method.payment-disabled label {
  cursor: not-allowed;
  background: #f5f5f5;
}

/* Payment Notice */
.payment-notice {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #856404;
  animation: slideDown 0.3s ease-out;
}

.payment-notice .icon-info {
  font-size: 20px;
  color: #ffc107;
  flex-shrink: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terms Agreement */
.terms-agreement {
  margin-bottom: 25px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background: #ee4266;
  border-color: #ee4266;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.terms-text {
  font-size: 14px;
  color: #666;
}

.terms-text a {
  color: #ee4266;
  text-decoration: none;
  font-weight: 500;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* Place Order Button */
.btn-place-order {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, #ee4266 0%, #d63854 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(238,66,102,0.3);
}

.btn-place-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(238,66,102,0.4);
}

.btn-place-order:active {
  transform: translateY(-1px);
}

.btn-place-order span[class^="icon-"] {
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .checkout-hero-section {
    height: 45vh;
    min-height: 300px;
  }
  
  .checkout-hero-title {
    font-size: 48px;
    letter-spacing: 6px;
  }
  
  .checkout-hero-subtitle {
    font-size: 13px;
    letter-spacing: 2.5px;
  }
  
  .checkout-hero-description {
    font-size: 15px;
  }
  
  .checkout-section {
    padding: 60px 0;
  }
  
  .checkout-sidebar {
    position: static;
  }
  
  .order-summary-section,
  .coupon-section,
  .checkout-form-section {
    padding: 25px;
  }
  
  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .checkout-hero-section {
    height: 40vh;
    min-height: 280px;
  }
  
  .checkout-hero-title {
    font-size: 36px;
    letter-spacing: 4px;
  }
  
  .checkout-hero-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
  }
  
  .checkout-hero-description {
    font-size: 14px;
    letter-spacing: 1px;
  }
  
  .checkout-section {
    padding: 40px 0;
  }
  
  .customer-notice {
    padding: 15px 20px;
    font-size: 14px;
    margin-bottom: 35px;
  }
  
  .customer-notice .icon-user {
    font-size: 20px;
  }
  
  .order-summary-section,
  .coupon-section,
  .checkout-form-section {
    padding: 20px;
  }
  
  .sidebar-title {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
  
  .order-item {
    padding: 12px 0;
  }
  
  .order-item-image {
    width: 70px;
    height: 70px;
  }
  
  .item-name {
    font-size: 13px;
  }
  
  .item-price {
    font-size: 14px;
  }
  
  .item-quantity {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  
  .total-final .total-label {
    font-size: 16px;
  }
  
  .total-final .total-value {
    font-size: 20px;
  }
  
  .payment-method label {
    padding: 15px 20px;
  }
  
  .payment-method-header span[class^="icon-"] {
    font-size: 20px;
  }
  
  .payment-method-title {
    font-size: 15px;
  }
  
  .payment-method-desc {
    font-size: 12px;
    padding-left: 32px;
  }
  
  .btn-place-order {
    padding: 16px 25px;
    font-size: 14px;
    letter-spacing: 1px;
  }
}

@media (max-width: 576px) {
  .checkout-hero-title {
    font-size: 28px;
    letter-spacing: 3px;
  }
  
  .checkout-hero-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  
  .checkout-section {
    padding: 30px 0;
  }
  
  .customer-notice {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .order-summary-section,
  .coupon-section,
  .checkout-form-section {
    padding: 18px;
    margin-bottom: 20px;
  }
  
  .order-item-image {
    width: 60px;
    height: 60px;
  }
  
  .item-quantity {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .coupon-input-group {
    flex-direction: column;
  }
  
  .btn-apply-coupon {
    width: 100%;
  }
  
  .payment-method-desc {
    padding-left: 0;
    margin-top: 8px;
  }
  
  .total-row {
    font-size: 14px;
  }
  
  .total-final .total-label {
    font-size: 15px;
  }
  
  .total-final .total-value {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .checkout-hero-title {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .order-item-image {
    width: 55px;
    height: 55px;
  }
  
  .item-name {
    font-size: 12px;
  }
  
  .item-price {
    font-size: 13px;
  }
  
  .section-title {
    font-size: 16px;
    gap: 10px;
  }
  
  .section-title span[class^="icon-"] {
    font-size: 22px;
  }
  
  .sidebar-title {
    font-size: 15px;
    gap: 10px;
  }
  
  .sidebar-title span[class^="icon-"] {
    font-size: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-form-section,
.order-summary-section,
.coupon-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.btn-place-order.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-place-order.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
