/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Josefin Sans', sans-serif;
}

/* Body Styling */
body {
  background-color: #f4f6f8;
  color: #333;
  
}

/* Page Title */
.checkout-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: bold;
  color: #222;
}

/* Main Layout */
.checkout-container {
  width: 90%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Column Boxes */
.checkout-column {
  flex: 1 1 32%;
  box-sizing: border-box;
  padding: 10px;
  min-width: 300px;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Optional: prevent stretching on small screens */
@media (max-width: 900px) {
  .checkout-column {
    flex: 1 1 100%;
  }
}



/* Column width fix */
.checkout-column.order-summary {
  flex: 1 1 25%;
}
.checkout-column.address-form {
  flex: 1 1 40%;
}
.checkout-column.payment-method.inside-form {
  flex: 1 1 30%;
}

/* Section Titles */
.checkout-column h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #0078D7;
}

/* Order Info Text */
.checkout-column p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.4;
}

.float-right {
  float: right;
}

/* Inputs & Textareas */
.classic-input,
.classic-textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: 0.3s;
}

.classic-input:focus,
.classic-textarea:focus {
  border-color: #0078D7;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 120, 215, 0.2);
}

/* Submit Button */
.classic-button {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background-color: #0078D7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

.classic-button:hover {
  background-color: #005bb5;
}

/* Links Row */
.checkout-link-row {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.checkout-link {
  text-decoration: none;
  color: #0078D7;
  font-weight: bold;
  font-size: 14px;
}

.checkout-link:hover {
  text-decoration: underline;
}

/* Payment Section Text */
.delivery-info {
  margin-top: 15px;
  font-weight: 500;
  color: #444;
}

.delivery-courier {
  font-weight: bold;
  color: green;
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }

  .checkout-link-row {
    flex-direction: column;
    gap: 10px;
  }

  .classic-button {
    width: 100%;
  }
}
.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.classic-checkout-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* Enhance left column buttons */
.checkout-link-row a {
  background-color:#003a68;
  color: white;
  padding: 8px 9px;
  border-radius: 5px;
  font-size: 12px;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease;
}

.checkout-link-row a:hover {
  background-color: #005bb5;
  text-decoration: none;
  color: #fff;
}

/* Slight gap below textarea */
.classic-textarea {
  margin-bottom: 14px;
}
.coupon-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}
.coupon-header a { color: #007bff; text-decoration: underline; cursor: pointer; }

.coupon-apply {
    display: flex;
    margin-bottom: 10px;
}
.coupon-apply input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
}
.coupon-apply button {
    padding: 5px 10px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.coupon-popup {
    display: none;
    position: fixed; top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    justify-content:center; align-items:center;
    z-index: 9999;
}
.coupon-popup-content {
    background: white;
    padding: 20px;
    width: 400px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
}
.coupon-close {
    position: absolute;
    right: 10px; top: 10px;
    cursor: pointer;
    font-size: 20px;
}
.coupon-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-card {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
}
.coupon-card.applicable { border-color: green; }
.coupon-card.disabled { opacity: 0.5; }
.coupon-left { flex: 1; }
.coupon-right { display: flex; align-items: center; }
.coupon-right button {
    padding: 5px 10px;
    background: green;
    color: white;
    border: none;
    cursor: pointer;
}
.coupon-card.disabled button { background: grey; cursor: not-allowed; }
.free-delivery-note {
    font-size: 13px;
    color: #246433;
    font-weight: 500;
    margin-top: 4px;
    background:#e9f9eef0;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

form{
        background-color: #fffaf0;
    padding: 20px;
    border: 1px solid #e6caa6;
    border-radius: 8px;
    max-width: 1000px;
    margin: auto;
}