.checkout {
  background: #f8f9fb;
  padding: 40px;
  min-height: 100vh;
}

/* LAYOUT */
.checkout-wrapper form {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* LEFT / RIGHT */
.checkout-left {
  flex: 2;
}

.checkout-right {
  flex: 1;
  position: sticky;
  top: 20px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* HEADER */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ADD BUTTON */
.add-address-btn {
  font-size: 13px;
  color: #4a6cf7;
  text-decoration: none;
  font-weight: 500;
}

/* ADDRESS LIST */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ADDRESS CARD */
.address-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: 0.2s ease;
  background: #fff;
}

/* HOVER */
.address-item:hover {
  border-color: #4a6cf7;
  background: #f5f7ff;
}

/* RADIO */
.address-item input {
  margin-top: 6px;
  pointer-events: none;
}

/* SELECTED STATE (SAFE FOR ALL BROWSERS) */
.address-item.selected {
  border: 2px solid #4a6cf7;
  background: #f5f7ff;
}

/* ADDRESS CONTENT */
.address-content {
  flex: 1;
}

/* TOP ROW */
.address-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* EDIT */
.edit-btn {
  font-size: 12px;
  color: #4a6cf7;
  text-decoration: none;
  font-weight: 500;
}

/* TEXT */
.address-content h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.address-content p {
  margin: 2px 0;
  font-size: 13px;
  color: #555;
}

/* BOTTOM ROW */
.address-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

/* PHONE */
.address-bottom span {
  font-size: 13px;
  color: #777;
}

/* DEFAULT BADGE */
.default-badge {
  font-size: 11px;
  background: #4a6cf7;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ORDER */
.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.order-item img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
}

.order-item .info {
  flex: 1;
}

.order-item .info p {
  margin: 0;
  font-size: 14px;
}

.order-item .info span {
  font-size: 12px;
  color: #777;
}

.order-item .price {
  font-weight: 600;
}

/* SUMMARY */
.summary {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.row.total {
  font-weight: 700;
  font-size: 16px;
}

/* PAYMENT */
.payment {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.payment h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #111827;
}

.payment-option {
  display: grid;
  grid-template-columns: 20px 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe1ef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.payment-option:hover,
.payment-option.selected {
  border-color: #4a6cf7;
  background: #f5f7ff;
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.12);
}

.payment-option input {
  width: 16px;
  height: 16px;
  accent-color: #4a6cf7;
}

.payment-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3b5bdb;
}

.payment-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-copy strong {
  font-size: 14px;
  color: #111827;
}

.payment-copy small {
  font-size: 12px;
  color: #6b7280;
}

/* BUTTON */
.place-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border: none;
  background: #4a6cf7;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.place-btn:hover {
  background: #3b5bdb;
}

.place-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
/* AVAILABLE COUPONS */

.available-coupons{
  margin-top:25px;
}

.coupon-header h4{
  font-size:20px;
  margin-bottom:15px;
  color:#111827;
}

.coupon-list{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.coupon-card{

  display:flex;

  justify-content:space-between;

  align-items:center;

  padding:18px;

  border:2px dashed #2f4da3;

  border-radius:14px;

  background:#f8fbff;
}

.coupon-left{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.coupon-code{

  background:#2f4da3;

  color:#fff;

  padding:8px 14px;

  border-radius:8px;

  font-weight:700;

  letter-spacing:1px;

  width:max-content;
}

.coupon-details h5{
  font-size:18px;
  color:#111827;
  margin-bottom:5px;
}

.coupon-details p{
  color:#6b7280;
  font-size:14px;
}

.coupon-apply-btn{

  background:#111827;

  color:#fff;

  border:none;

  padding:10px 18px;

  border-radius:10px;

  cursor:pointer;

  font-weight:600;

  transition:.3s;
}

.coupon-apply-btn:hover{
  background:#2f4da3;
}
