.checkout-page {
  max-width: 900px;
  margin: auto;
  padding: 90px 16px 50px;
  display: grid;
  gap: 20px;
}

.checkout-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.checkout-card h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
}

/* Invoice */
.invoice-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.invoice-product img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: contain;
  background: #f5f7fa;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 700;
}

.invoice-row.total {
  margin-top: 14px;
  font-size: 18px;
  color: #2F80ED;
}

/* Payment */
.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s;
  margin-bottom: 10px;
}

.pay-method input {
  display: none;
}

.pay-method:hover {
  border-color: #2F80ED;
}

.pay-method input:checked + span {
  color: #2F80ED;
}

/* Input */
.checkout-card input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  font-size: 15px;
  font-family: inherit;
}

.checkout-card input:focus {
  outline: none;
  border-color: #2F80ED;
}

/* Footer */
.checkout-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.1);
  z-index: 999;
}

.checkout-footer button {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 16px;
}

/* Coupon */
.coupon-box {
  display: flex;
  gap: 10px;
}

.coupon-box input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  font-family: inherit;
  font-size: 15px;
}

.coupon-box input:focus {
  outline: none;
  border-color: #2F80ED;
}

.coupon-box button {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  background: #2F80ED;
  color: #fff;
  border: none;
}

.coupon-msg {
  margin-top: 10px;
  font-weight: 800;
}

.coupon-msg.success {
  color: #16a34a;
}

.coupon-msg.error {
  color: #dc2626;
}

/* سطر الخصم */
.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dc2626;
  font-weight: 900;
}

.discount-row span {
  color: #dc2626;
}

.discount-row strong {
  color: #dc2626;
  text-align: left;
}
/* =====================
   PAYMENT BOX
===================== */

.payment-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.payment-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.payment-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* طرق الدفع */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-method {
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s;
  background: #fff;
}

.pay-method input {
  display: none;
}

.pay-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}

.pay-content img {
    border-radius: 8px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Hover */
.pay-method:hover {
  background: #f8faff;
  border-color: #c7d2fe;
}

/* Selected */
.pay-method:has(input:checked) {
  background: #eef2ff;
  border-color: #4f46e5;
}

/* ملاحظة */
.payment-note {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  background: #eef2ff;
  padding: 10px 14px;
  border-radius: 12px;
}
/* =========================
   PRIMARY ACTION BUTTON
   (Canva Style Unified)
========================= */

.primary-action-btn {
  width: 100%;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: auto;
  border-radius: 20px;

  background: linear-gradient(
    135deg,
    #6C4CFF,
    #8B6CFF
  );

  color: #fff;
  font-size: 18px;
  font-weight: 900;

  border: none;
  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(108, 76, 255, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);

  transition: 0.25s ease;
}

/* Hover */
.primary-action-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(108, 76, 255, 0.45);
}

/* Active */
.primary-action-btn:active {
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(108, 76, 255, 0.35);
}

/* Disabled (لو احتجت بعدين) */
.primary-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ===== Copyright ===== */
.copyright {
  margin: 20px auto 120px;
  padding-top: 14px;
  max-width: 1100px;

  font-size: 12.5px;
  color: #888;

  border-top: 1px solid #e6e8eb;
  text-align: center; /* الشمال في RTL */
}

/* Mobile */
@media (max-width: 768px) {
  .copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 30px;
  }
}
