/*--------------------------------------------------------------
# Payment Page Styles
--------------------------------------------------------------*/
.payment-page {
  background: var(--surface-color);
}

/* Progress Steps */
.payment-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--default-color);
  transition: all 0.3s ease;
}

.progress-step.completed .step-icon {
  background: var(--accent-color);
  color: white;
}

.progress-step.active .step-icon {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 80%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--default-color);
  opacity: 0.7;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
  opacity: 1;
  color: var(--heading-color);
}

.progress-line {
  width: 80px;
  height: 3px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  margin: 0 10px;
  margin-bottom: 45px;
}

.progress-line.completed,
.progress-line.active {
  background: var(--accent-color);
}

/* Security Notice */
.security-notice {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-color), transparent 95%),
    white
  );
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.notice-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.notice-content {
  flex: 1;
}

.notice-content h5 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  color: var(--heading-color);
}

.notice-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.notice-badges {
  display: flex;
  gap: 10px;
}

.notice-badges img {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Selected Payment Method */
.selected-payment-method h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading-color);
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.payment-method-card.active {
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.method-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.method-info {
  flex: 1;
}

.method-info h5 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.method-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.btn-change-method {
  padding: 8px 20px;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-change-method:hover {
  background: var(--accent-color);
  color: white;
}

/* Payment Form */
.payment-form-wrapper {
  background: white;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.payment-form-wrapper h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
}

.card-input-wrapper {
  position: relative;
}

.card-number-input {
  padding-right: 60px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  font-weight: 500;
}

.card-brand {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--default-color);
  opacity: 0.5;
}

.expiry-input-wrapper,
.cvv-input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  opacity: 0.7;
}

.btn-payment-submit {
  padding: 18px 30px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), black 15%)
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px
    color-mix(in srgb, var(--accent-color), transparent 60%);
}

.btn-payment-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px
    color-mix(in srgb, var(--accent-color), transparent 50%);
}

.payment-security-note {
  color: var(--default-color);
  opacity: 0.8;
}

/* Alternative Payments */
.alternative-payments {
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.alternative-payments h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

.alt-payment-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--surface-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.alt-payment-option:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-color: var(--accent-color);
}

.alt-payment-option i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.alt-payment-option span {
  flex: 1;
  font-weight: 500;
}

.btn-select-alt {
  padding: 5px 15px;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-select-alt:hover {
  background: var(--accent-color);
  color: white;
}

/* Payment Summary Sidebar */
.payment-summary {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.summary-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

/* Mini Cart */
.mini-cart-items {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

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

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

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

.mini-item-info h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 5px;
}

.mini-item-info p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.7;
}

.mini-item-price {
  font-weight: 700;
  color: var(--heading-color);
}

/* Delivery Summary */
.delivery-summary {
  padding: 20px;
  background: var(--surface-color);
  border-radius: 10px;
}

.delivery-summary h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.delivery-address {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.delivery-estimate {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
}

.btn-edit-delivery {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-edit-delivery:hover {
  text-decoration: underline;
}

/* Trust Badges */
.trust-badges-sidebar {
  padding: 20px;
  background: var(--surface-color);
  border-radius: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
}

.trust-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Payment Support */
.payment-support {
  padding: 20px;
  background: var(--surface-color);
  border-radius: 10px;
  text-align: center;
}

.payment-support h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Security Features Section */
.security-features {
  padding: 60px 0;
}

.security-feature {
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.security-feature:hover {
  transform: translateY(-5px);
}

.security-feature i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.security-feature h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.security-feature p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Processing Modal */
.processing-spinner {
  font-size: 3rem;
}

.processing-spinner .spinner-border {
  width: 4rem;
  height: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .payment-progress {
    padding: 20px 0;
    flex-wrap: wrap;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .progress-line {
    width: 40px;
    margin: 0 5px;
  }

  .security-notice {
    flex-direction: column;
    text-align: center;
  }

  .notice-badges {
    justify-content: center;
  }

  .payment-form-wrapper {
    padding: 25px;
  }

  .payment-summary {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .progress-step {
    flex: 0 0 auto;
  }

  .progress-line {
    width: 30px;
  }

  .step-label {
    display: none;
  }
}
