@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600&display=swap');

* {
    font-family: 'Hind Siliguri', sans-serif;
}

/* Modal Styles */
.checkout-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.checkout-modal-content {
  background-color: #fff;
  margin: 5px auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 98vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  position: relative;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #f9f9f9;
  border-radius: 8px 8px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.ck-close-modal {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  color: red;
  transition: color 0.2s;
  border-radius: 56%;
  text-align: center;
  padding: 5px;
}

.ck-close-modal:hover {
  color: #e74c3c;
}

.checkout-modal-body {
  padding: 20px;
}

/* Cart Items Section */
.cart-items-section {
  margin-bottom: 5px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.cart-item-image {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

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

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.cart-item-price {
  color: #666;
  font-size: 0.9em;
}

.cart-item-remove {
    color: #e74c3c;
    cursor: pointer;
    font-size: 25px;
    padding: 5px;
    margin-left: 10px;
    transition: color 0.2s;
    font-weight: 700;
}

.cart-item-remove:hover {
  color: #c0392b;
}

/* Delivery Options Section */
.delivery-options h6 {
    font-size: 14px;
    font-weight: 600;
}
.delivery-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.delivery-option:hover {
  border-color: #ccc;
  background-color: #f9f9f9;
}

.delivery-option input[type="radio"] {
  margin-right: 12px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.delivery-option label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  color: #000000;
}

.delivery-price {
  font-weight: 600;
  color: #000000;
}

.delivery-option.selected {
    border-color: #000000;
    background-color: #fff;
    border-width: 2px;
    font-weight: 600;
}

/* Coupon Section */
.coupon-section {
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.coupon-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}
.coupon-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.coupon-form {
  display: flex;
  gap: 10px;
}

.coupon-form input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px !important;
  font-size: 14px;
  transition: border-color 0.2s;
}

.coupon-form input:focus {
  border-color: #aaa;
  outline: none;
}

.coupon-form button {
  padding: 5px 20px;
  background-color: #E74C3C;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.coupon-form button:hover {
  background-color: #eee;
}

#applied-coupons {
  margin-top: 10px;
}

.applied-coupon {
  display: inline-block;
  margin: 5px 5px 0 0;
  padding: 5px 10px;
  background-color: #f1f1f1;
  border-radius: 4px;
  font-size: 0.9em;
}

.applied-coupon .remove-coupon {
  margin-left: 5px;
  cursor: pointer;
  color: #e74c3c;
}

/* Order Summary */
.order-summary {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #EBEBEB;
  border-radius: 4px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  font-weight: bold;
  font-size: 1em;
}

.summary-row.discount {
  color: #e74c3c;
}

/* Notes Section */
.notes-section {
  margin-bottom: 25px;
}

.notes-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.notes-section textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.notes-section textarea:focus {
  border-color: #aaa;
  outline: none;
}

input#order-notes {
    border-radius: 4px !important;
    font-size: 14px;
}
/* Customer Information Section */
.customer-info-section {
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.customer-info-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}


  .wc-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .customer-info-section .wc-form-row ::before{
    content: unset !important;
  }
  .customer-info-section .wc-form-row ::after{
    content: unset !important;
  }
  .label-container {
    width: 96px;
    display: flex;
    align-items: flex-end;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    font-size: 14px;
    gap:5px;
  }
  .label-container .required {
    color: #e11d48; 
    font-size: 16px;
    line-height: 1;
  }
  .input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #e5e7eb;
  }
  .icon-box {
    width: 20px;       
    height: 20px;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4b5563; 
    background-color: #d1d5db; 
  }
  .input-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #4b5563; 
  }
  .input-field::placeholder {
    color: #9ca3af; 
  }

.customer-info-section {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 10px;
}

.form-error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
}

  .animated-button {
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #FF4106 !important;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.3s ease-out forwards, bounceSkewPause 2.5s ease-in-out 0.3s infinite;
  }
.animated-button:hover {
  background-color: #d63200;
}
  /* Entry scale animation */
  @keyframes scaleIn {
    0% {
      opacity: 0;
      transform: scale(0.5);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Fast bounce + pause loop */
  @keyframes bounceSkewPause {
    0%, 10% {
      transform: translateY(0) skewY(0deg);
    }
    12% {
      transform: translateY(-6px) skewY(-4deg);
    }
    16% {
      transform: translateY(5px) skewY(4deg);
    }
    20% {
      transform: translateY(-3px) skewY(-2deg);
    }
    24%, 100% {
      transform: translateY(0) skewY(0deg);
    }
  }


/* Checkout Actions */
.checkout-actions {
  margin-bottom: 15px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.checkout-notice {
    text-align: center;
    font-size: 15px;
    color: #3d9a2c;
    margin-top: 15px;
    margin-bottom: 0;
    font-weight: 600;
}

/* Checkout Errors */
.checkout-errors {
  margin: 15px 0;
  padding: 0;
  color: #e74c3c;
  font-size: 14px;
  text-align: center;
}

/* Order Now Button */
.order-now-button {
  display: inline-block;
  padding: 10px 18px;
  background-color: #FF4106;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-now-button:hover {
  background-color: #d63200;
}

/* Loading */
.loading {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* Processing State */
.processing {
  opacity: 0.7;
  pointer-events: none;
}

.processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 8px;
}

.processing-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e74c3c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .checkout-modal-content {
    width: 95%;
    margin: 10px auto;
  }

  .checkout-button {
    padding: 12px;
  }

  .cart-item-image {
    width: 50px;
    height: 50px;
  }
}


#payment-methods-container {
    display: flex;
    gap: 10px;
}
.payment-method-option label {
    flex: 1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method-option label img {
    max-width: 50px;
    margin-left: 5px;
}
.payment-method-fields p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 9px;
}

.payment-methods-section h6 {
    font-size: 14px;
    font-weight: 600;
}