/**
 * Checkout Styles for StickerPro Theme
 */

/* Checkout Container */
.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}

.checkout-main {
  flex: 1;
  min-width: 60%;
}

.checkout-sidebar {
  width: 350px;
}

/* Page Title */
.page-title {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.step {
  flex: 1;
  padding: 15px;
  text-align: center;
  position: relative;
  color: #999;
}

.step.active {
  color: var(--primary-color);
}

.step.completed {
  color: #4caf50;
}

.step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background-color: #f5f5f5;
  margin-right: 10px;
  font-weight: 600;
  color: #999;
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: #fff;
}

.step.completed .step-number {
  background-color: #4caf50;
  color: #fff;
}

.step-title {
  font-weight: 500;
}

.step::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.step.active::after {
  width: 100%;
}

.step.completed::after {
  width: 100%;
  background-color: #4caf50;
}

/* Checkout Form */
.checkout-form {
  margin-top: 30px;
}

.checkout-step-content {
  display: none;
}

.checkout-step-content.active {
  display: block;
}

.checkout-step-content h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input.error,
.form-group select.error {
  border-color: #ff3b30;
}

/* Form Actions */
.form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.button {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.next-step {
  background-color: var(--primary-color);
  color: #fff;
}

.next-step:hover {
  opacity: 0.9;
}

.prev-step {
  background-color: #f5f5f5;
  color: #333;
}

.prev-step:hover {
  background-color: #eee;
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 30px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method input {
  margin-right: 15px;
}

.payment-method label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.payment-method img {
  height: 30px;
  margin-right: 15px;
}

/* PayPal Button Container */
#paypal-button-container {
  margin-top: 30px;
  min-height: 150px;
}

/* Order Confirmation */
.order-confirmation {
  text-align: center;
  padding: 30px 0;
}

.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-success i {
  font-size: 60px;
  color: #4caf50;
  margin-bottom: 20px;
}

.order-success h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.order-success p {
  margin-bottom: 10px;
  color: #666;
}

#order-number {
  font-weight: 600;
  color: var(--primary-color);
}

/* Order Summary */
.order-summary {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 20px;
}

.order-summary h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border: 1px solid #eee;
  border-radius: 3px;
  overflow: hidden;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-details {
  flex: 1;
}

.order-item-details h4 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 500;
}

.order-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}

.order-totals {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.order-totals > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-totals .total {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 10px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }

  .checkout-sidebar {
    width: 100%;
    order: -1;
  }
}
