.ab-checkout-container {
  padding: 40px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-checkout-container p {
  margin: 0 !important;
}

.ab-checkout-container .ab-title-back {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ab-checkout-container .ab-title-back button {
  background-color: #fff;
  border: none;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ab-checkout-container .ab-title-back button:hover {
  transform: scale(1.05);
}

.ab-checkout-container .ab-title-back h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.ab-checkout-container .ab-billing-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ab-checkout-container .ab-billing-summary .ab-billing {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  height: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ab-checkout-container .ab-form .form-group input,
.ab-checkout-container .ab-form .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  outline: none;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: inputAppear 0.5s ease-out;
}

.ab-checkout-container .ab-form .form-group input:focus,
.ab-checkout-container .ab-form .form-group textarea:focus {
  border-color: #a0a0a0;
  box-shadow: 0 0 0 3px rgba(160, 160, 160, 0.1);
}

@keyframes inputAppear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-checkout-container .ab-form .form-group label {
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.ab-checkout-container .ab-billing-summary .ab-order-summary .ab-product-item {
  display: flex;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-image {
  width: 100px;
  height: 100px;
  min-width: 95px;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-image
  img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-image:hover
  img {
  transform: scale(1.05);
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  justify-content: space-between;
  padding-left: 15px;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-meta-data {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-quantity {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 10px;
  text-align: right;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-name-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-quantity {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  width: fit-content;
  padding: 5px;
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.7rem;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-products-list
  .ab-product-item
  .ab-product-info
  .ab-quantity-remove
  .ab-quantity-control {
  display: flex;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 70px;
  justify-content: space-between;
  padding: 5px 20px;
  cursor: pointer;
}

.ab-checkout-container .ab-billing-summary .ab-order-summary {
  width: 30%;
  min-width: 280px;
  padding: 20px;
  height: auto;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ab-checkout-container .ab-billing-summary .ab-order-summary h3 {
  margin-top: 0 !important;
  font-weight: 500;
}

.ab-checkout-container .ab-billing-summary .ab-order-summary .ab-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, 0.4);
}

.ab-checkout-container .ab-billing-summary .ab-order-summary .ab-row span {
  color: #111;
}

/* Payment Details Section */
.ab-checkout-container
  .ab-billing-summary
  .ab-order-summary
  .ab-payment-details {
  margin-top: 25px;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-order-summary
  .ab-payment-details
  h4 {
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-order-summary
  .ab-payment-details
  h4 i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

/* Payment Options Container */
.ab-payment-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

/* Payment Option Item */
.ab-payment-option {
  position: relative;
}

.ab-payment-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ab-payment-label {
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

/* Payment Card */
.ab-payment-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ab-payment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--yellow));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-payment-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-card {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #e8f4ff 0%, #f0f7ff 100%);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
  transform: translateY(-2px);
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-card::before {
  transform: scaleY(1);
}

/* Payment Icon */
.ab-payment-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(233, 179, 79, 0.1) 100%);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ab-payment-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--yellow) 100%);
  transform: scale(1.1);
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-icon i {
  color: #fff;
  transform: scale(1.1);
}

/* Payment Content */
.ab-payment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-payment-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  transition: color 0.3s ease;
}

.ab-payment-subtitle {
  font-size: 0.85rem;
  color: #666;
  transition: color 0.3s ease;
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-title {
  color: var(--primary-color);
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-subtitle {
  color: #555;
}

/* Payment Check Icon */
.ab-payment-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0);
}

.ab-payment-check i {
  font-size: 1.2rem;
  color: #fff;
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-check {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--yellow) 100%);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* Payment Description */
.ab-payment-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px;
  opacity: 0;
}

.ab-payment-radio:checked + .ab-payment-label + .ab-payment-desc {
  max-height: 200px;
  padding: 15px 20px;
  opacity: 1;
}

.ab-payment-desc-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-payment-desc-content i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.ab-payment-desc-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

/* Additional Interactive Effects */
.ab-payment-card.ab-selected {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
  }
  50% {
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
  }
  100% {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
  }
}

/* Smooth focus states */
.ab-payment-label:focus-within .ab-payment-card {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced hover for better UX */
.ab-payment-card:hover .ab-payment-icon {
  transform: scale(1.05) rotate(5deg);
}

.ab-payment-radio:checked + .ab-payment-label .ab-payment-card:hover .ab-payment-icon {
  transform: scale(1.15) rotate(0deg);
}

.ab-checkout-container .ab-billing-summary .ab-order-summary hr {
  border: none;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.ab-checkout-container .ab-billing-summary .ab-order-summary .ab-checkout-btn {
  background-color: #e9bb4f;
  padding: 12px 20px;
  width: 100%;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 18px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.ab-checkout-container
  .ab-billing-summary
  .ab-order-summary
  .ab-checkout-btn:hover {
  background-color: #d8aa41;
  transform: translateY(-2px);
}

.ab-checkout-container .ab-billing h3 {
  font-weight: 500;
  margin-top: 0 !important;
}

.ab-checkout-container .ab-form .row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ab-checkout-container .ab-form .row .form-group {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 5px;
  margin-bottom: 10px;
}

.ab-checkout-container .ab-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.ab-checkout-container .ab-form .address {
  margin: 10px 0 20px;
}

.ab-checkout-container .ab-orderplaced-container {
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px;
}

.ab-checkout-container .ab-circle-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4caf50;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
}

.ab-checkout-container .ab-circle-icon i {
  font-size: 50px;
  color: white;
}

.ab-checkout-container .ab-heading {
  font-size: 2rem;
  color: #333;
  margin: 0;
}

.ab-checkout-container .ab-order-id {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.ab-checkout-container .ab-order-details-button {
  background-color: #d8aa41;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .ab-checkout-container {
    padding: 20px;
  }

  .ab-checkout-container .ab-billing-summary {
    flex-direction: column;
  }

  .ab-checkout-container .ab-billing-summary .ab-billing,
  .ab-checkout-container .ab-billing-summary .ab-order-summary {
    width: 100%;
  }

  .ab-checkout-container .ab-billing-summary .ab-order-summary {
    height: auto;
    margin-top: 20px;
    position: static;
  }

  .ab-checkout-container
    .ab-billing-summary
    .ab-order-summary
    .ab-checkout-btn {
    position: static;
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .ab-checkout-container {
    padding: 15px;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .ab-checkout-container {
    padding: 20px;
    padding-top: 0 !important;
  }

  .ab-checkout-container .ab-title-back h3 {
    font-size: 1.2rem;
  }

  .ab-checkout-container .ab-title-back button {
    font-size: 18px;
  }

  .ab-checkout-container
    .ab-billing-summary
    .ab-products-list
    .ab-product-item {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    width: 100%;
  }

  .ab-checkout-container .ab-billing-summary .ab-billing {
    width: 100% !important;
  }

  .ab-checkout-container
    .ab-billing-summary
    .ab-products-list
    .ab-product-item
    .ab-product-image {
    width: 160px;
    height: 160px;
    min-width: 160px;
    margin: 0 auto;
  }

  .ab-checkout-container
    .ab-billing-summary
    .ab-products-list
    .ab-product-item
    .ab-product-info
    .ab-name-price,
  .ab-checkout-container
    .ab-billing-summary
    .ab-products-list
    .ab-product-item
    .ab-product-info
    .ab-quantity-remove {
    align-items: center;
  }

  .ab-checkout-container
    .ab-billing-summary
    .ab-products-list
    .ab-product-item
    .ab-product-info
    .ab-quantity-remove
    .ab-quantity-control {
    width: 100px;
    padding: 5px 15px;
  }

  .ab-checkout-container .ab-billing-summary .ab-order-summary {
    width: 100% !important;
    margin-top: 0 !important;
  }

  .ab-checkout-container .ab-form .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ab-checkout-container .ab-form .row .form-group {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    gap: 5px;
    margin-bottom: 10px;
  }

  .ab-payment-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .ab-payment-icon {
    width: 40px;
    height: 40px;
  }

  .ab-payment-icon i {
    font-size: 1.4rem;
  }

  .ab-payment-title {
    font-size: 0.95rem;
  }

  .ab-payment-subtitle {
    font-size: 0.8rem;
  }

  .ab-payment-check {
    width: 24px;
    height: 24px;
  }

  .ab-payment-check i {
    font-size: 1rem;
  }

  .ab-payment-desc-content {
    padding: 12px;
    flex-direction: column;
    gap: 8px;
  }

  .ab-payment-desc-content i {
    font-size: 1rem;
  }

  .ab-payment-desc-content p {
    font-size: 0.85rem;
  }
}

.ab-orderplaced-container {
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px;
}

.ab-circle-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4caf50;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
}

.ab-circle-icon i {
  font-size: 50px;
  color: white;
}

.ab-heading {
  font-size: 2rem;
  color: #333;
  margin: 0;
}

.ab-order-id {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.ab-order-details-button {
  background-color: #d8aa41;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}
