/* Payment loading spinner */
.payment-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  display: none;
}

.payment-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.payment-loading h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.payment-loading p {
  color: #666;
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

/* FontAwesome Icons Styles */
.svg-c i.fas,
.svg-c i.fab {
  color: white;
  font-size: 16px;
}

#cart .svg-c i.fas,
#cart .svg-c i.fab {
  color: white;
  font-size: 14px;
}

.payment-clone .desc i.fas,
.payment-clone .desc i.fab {
  color: #865ba6;
  font-size: 18px;
  margin-right: 12px;
}

/* ===== MOBILE PAYMENT STYLES (< 500px) ===== */
@media (max-width: 499px) {
  #body {
    background-color: #f8f9fa !important;
  }

  /* Override background to white when form is shown */
  body:has(#formWrapper:not(.hidden)) {
    background-color: #ffffff !important;
  }

  .payment-main-container {
    width: 100%;
    background-color: #f8f9fa;
    padding-bottom: 30px;
  }

  /* Modern Header with Better Spacing */
  #secondHeader {
    background-color: transparent !important;
  }

  .payment-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
  }

  .payment-header .svg-c {
    width: 35px;
    height: 35px;
    background-color: #865ba6;
    border-radius: 8px;
    display: grid;
    place-content: center;
    cursor: pointer;
  }

  .payment-header span {
    font-size: 1.2rem !important;
    color: #000;
    font-weight: 400;
  }

  .payment-header .span-border {
    color: #865ba6;
    font-size: 1.2rem !important;
    font-weight: 400;
  }

  #paymentContent {
    background-color: #f8f9fa;
    padding: 0 12px;
  }

  /* Cart Section - Clean and Modern */
  #cart {
    margin-top: 25px;
  }

  #cart h3 {
    text-align: center;
    color: #2d3436;
    font-size: 1.3rem;
    font-weight: 600 !important;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* Product Card - More Spacious */
  #cart .flex-container {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 12px;
    margin-top: 12px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  #cart .flex-container:active {
    transform: scale(0.98);
  }

  #cart .left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }

  #cart .image-c {
    width: 85px;
    height: 85px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 14px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
  }

  #cart .details-c {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }

  #cart .product-pass span {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  #cart .product-category span {
    color: #868e96;
    font-size: 0.8rem;
  }

  #cart .product-title span {
    font-size: 0.95rem;
    color: #2d3436;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #cart .product-price span {
    color: #865ba6;
    font-size: 1.1rem;
    font-weight: 700;
  }

  /* Delete Button - More Prominent */
  #cart .right .svg-c {
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
    border-radius: 12px;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(134, 91, 166, 0.25);
  }

  #cart .right .svg-c:active {
    transform: scale(0.9);
  }

  /* Info Cards - Better Visual Separation */
  #cart .duplicate,
  #cart .cupon {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 15px;
    margin-top: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  #cart .duplicate .flex-c {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #cart .duplicate .flex-c .left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #cart .duplicate .flex-c .left .svg-c {
    width: 36px;
    height: 36px;
    display: grid;
    place-content: center;
    background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
    border-radius: 10px;
  }

  #cart .duplicate .flex-c .left span {
    font-size: 0.95rem;
    color: #2d3436;
    font-weight: 500;
  }

  #cart .duplicate .right span {
    font-size: 1rem;
    color: #00b894;
    font-weight: 700;
  }

  #cart .duplicate .bottom-desc p {
    color: #636e72;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 10px;
  }

  #cart .duplicate .bottom-desc p span {
    color: #865ba6;
    font-weight: 700;
  }

  /* Total Price - Prominent Display */
  #cart .total-price {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px;
    margin-top: 15px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #e9ecef;
  }

  #cart .total-price .left span {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  #cart .total-price .right h6 {
    font-size: 1.4rem;
    color: #865ba6;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
  }

  /* Payment Button - More Inviting */
  #cart .btn-payment {
    width: 100%;
    padding: 0 12px;
    margin-top: 25px;
    margin-bottom: 30px;
  }

  #cart .btn-payment button {
    width: 100%;
    height: 56px;
    border: none;
    background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 4px 15px rgba(134, 91, 166, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  #cart .btn-payment button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(134, 91, 166, 0.3);
  }

  /* Form Section - Clean and Organized */
  #formSection .main-c {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    padding: 25px 20px;
    border-radius: 0 0 25px 25px;
  }

  #formSection .main-c h2 {
    color: #000;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 !important;
    letter-spacing: 0.3px;
  }

  #paymentForm {
    width: 100%;
    padding: 0 15px;
  }

  /* Section Titles - Better Hierarchy */
  #paymentForm .second-title {
    margin-top: 35px;
    margin-bottom: 18px;
    padding-left: 5px;
    border-left: 4px solid #865ba6;
  }

  #paymentForm .second-title h3 {
    color: #2d3436;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    padding-left: 10px;
  }

  #paymentForm .form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Input Fields - Modern Look */
  #paymentForm .input-c {
    margin-bottom: 8px;
  }

  #paymentForm .input-c label {
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
  }

  #paymentForm .input-c input,
  #paymentForm .input-c textarea {
    width: 100%;
    border: 2px solid #e9ecef;
    background-color: #ffffff;
    height: 48px;
    border-radius: 12px;
    font-size: 0.9rem;
    padding: 0 15px;
    color: #2d3436;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  #paymentForm .input-c input:focus,
  #paymentForm .input-c textarea:focus {
    outline: none;
    border-color: #865ba6;
    box-shadow: 0 0 0 3px rgba(134, 91, 166, 0.1);
  }

  #paymentForm .input-c input::placeholder,
  #paymentForm .input-c textarea::placeholder {
    color: #adb5bd;
  }

  #paymentForm .input-c input:disabled,
  #paymentForm .input-c textarea:disabled {
    background-color: #f5f5f5;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
    opacity: 0.7;
  }

  #paymentForm .input-c input:disabled::placeholder,
  #paymentForm .input-c textarea:disabled::placeholder {
    color: #adb5bd;
    opacity: 0.6;
  }

  #paymentForm .input-c textarea {
    height: 100px;
    padding-top: 12px;
    resize: vertical;
    min-height: 100px;
  }

/* Payment Method Cards - Enhanced */
#paymentForm .checkbox-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}  #paymentForm .checkbox-list .payment-clone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    width: 100%;
    height: 56px;
    padding: 0 18px;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
  }

  #paymentForm .checkbox-list .payment-clone:active {
    transform: scale(0.98);
  }

  #paymentForm .checkbox-list .payment-clone:has(input:checked) {
    border-color: #865ba6;
    background: linear-gradient(
      135deg,
      rgba(134, 91, 166, 0.05) 0%,
      rgba(109, 73, 133, 0.05) 100%
    );
    box-shadow: 0 2px 12px rgba(134, 91, 166, 0.15);
  }

  #paymentForm .checkbox-list .desc {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #paymentForm .checkbox-list .desc span {
    font-size: 0.9rem;
    color: #2d3436;
    font-weight: 600;
  }

  #paymentForm .checkbox-list input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid #865ba6;
    cursor: pointer;
    background-color: #fff;
    position: relative;
    transition: background-color 0.3s, transform 0.2s;
  }

  #paymentForm .checkbox-list input[type="radio"]:checked {
    background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
    transform: scale(1.1);
  }

  #paymentForm .checkbox-list input[type="radio"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
  }

  #paymentForm .checkbox-list .bottom-text p {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 8px 0 0 50px;
  }

/* Final Section - Polished Look */
#paymentForm .finish-form {
  margin-top: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px 18px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}  #paymentForm .finish-form .f-f-select div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  #paymentForm .finish-form .f-f-select div label {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: #495057;
  }

  #paymentForm .finish-form .f-f-select div label span {
    color: #865ba6;
    font-weight: 700;
    text-decoration: underline;
  }

  #paymentForm .finish-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 24px;
    width: 24px;
    max-width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #865ba6;
    cursor: pointer;
    margin-right: 12px;
    margin-top: 2px;
    background-color: #fff;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.3s, transform 0.2s;
  }

  #paymentForm .finish-form input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
    transform: scale(1.1);
  }

  #paymentForm .finish-form input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
  }

  #paymentForm .finish-form button {
    width: 100%;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(134, 91, 166, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  #paymentForm .finish-form button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(134, 91, 166, 0.3);
  }

  /* Cart Products Container for Mobile */
  .cart-products-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== DESKTOP VERSION STYLES (500px and above) ===== */
@media (min-width: 500px) {
  #body {
    background-color: #f2f2f2;
    min-height: 100vh;
  }

  .payment-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  /* Payment Header Desktop */
  .payment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
  }

  .payment-header .svg-c {
    width: 45px;
    height: 45px;
    display: grid;
    place-content: center;
    background-color: #865ba6;
    border-radius: 10px;
    cursor: pointer;
  }

  .payment-header span {
    color: #000;
    font-size: 1.8rem;
    font-weight: 300;
  }

  .payment-header .span-border {
    color: #865ba6;
    font-size: 1.8rem;
    font-weight: 400;
    margin-right: 10px;
  }

  /* Desktop Cart Section */
  #cart {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
  }

  #cart h3 {
    text-align: center;
    color: #000;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
  }

  #cart .flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 20px;
  }

  #cart .left {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  #cart .image-c {
    width: 120px;
    height: 120px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
  }

  #cart .details-c {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #cart .product-pass span {
    color: #666;
    font-size: 0.95rem;
  }

  #cart .product-category span {
    color: #666;
    font-size: 0.95rem;
  }

  #cart .product-title span {
    font-size: 1.2rem;
    color: #000;
    font-weight: 500;
  }

  #cart .product-price span {
    color: #865ba6;
    font-size: 1.3rem;
    font-weight: 600;
  }

  #cart .right .svg-c {
    width: 45px;
    height: 45px;
    cursor: pointer;
    background-color: #865ba6;
    border-radius: 8px;
    transition: background-color 0.3s;
    display: grid;
    place-content: center;
  }

  #cart .right .svg-c:hover {
    background-color: #6d4985;
  }

  #cart .duplicate {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
  }

  #cart .duplicate .flex-c {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #cart .duplicate .flex-c .left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #cart .duplicate .flex-c .left .svg-c {
    width: 35px;
    height: 35px;
    display: grid;
    place-content: center;
    background-color: #865ba6;
    border-radius: 6px;
  }

  #cart .duplicate .right span {
    font-size: 1.1rem;
    color: green;
    font-weight: 600;
  }

  #cart .duplicate .bottom-desc {
    margin-top: 10px;
  }

  #cart .duplicate .bottom-desc p {
    color: #555;
    font-size: 0.95rem;
  }

  #cart .duplicate .bottom-desc p span {
    color: #865ba6;
    font-weight: bold;
    cursor: pointer;
  }

  #cart .total-price {
    background-color: #f9f9f9;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    margin-top: 30px;
  }

  #cart .total-price .left span {
    font-size: 1.2rem;
    color: #000;
  }

  #cart .total-price .right h6 {
    font-size: 1.8rem;
    color: #865ba6;
    font-weight: 700;
    margin: 0;
  }

  #cart .btn-payment {
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  #cart .btn-payment button {
    min-width: 350px;
    height: 60px;
    border: none;
    background-color: #865ba6;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #fff;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #cart .btn-payment button:hover {
    background-color: #6d4985;
  }

  /* Desktop Form Section */
  #formSection {
    background-color: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  #formSection .main-c {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 15px;
    height: 100px;
    margin-bottom: 40px;
  }

  #formSection .main-c h2 {
    color: #000;
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
  }

  #paymentForm {
    max-width: 900px;
    margin: 0 auto;
  }

  #paymentForm .second-title {
    margin-top: 40px;
    margin-bottom: 25px;
  }

  #paymentForm .second-title h3 {
    color: #000;
    font-size: 1.6rem;
    font-weight: 300;
  }

  #paymentForm .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  #paymentForm .input-c {
    margin-bottom: 20px;
  }

  #paymentForm .input-c label {
    color: #000;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 8px;
    display: block;
  }

  #paymentForm .input-c input,
  #paymentForm .input-c textarea {
    width: 100%;
    border: none;
    background-color: #f5f5f5;
    height: 50px;
    border-radius: 10px;
    font-size: 0.95rem;
    padding: 0 15px;
    transition: background-color 0.3s;
  }

  #paymentForm .input-c input:focus,
  #paymentForm .input-c textarea:focus {
    outline: 2px solid #865ba6;
    background-color: #fff;
  }

  #paymentForm .input-c input:disabled,
  #paymentForm .input-c textarea:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
  }

  #paymentForm .input-c input:disabled::placeholder,
  #paymentForm .input-c textarea:disabled::placeholder {
    color: #adb5bd;
    opacity: 0.6;
  }

  #paymentForm .input-c textarea {
    height: 100px;
    padding-top: 12px;
    resize: vertical;
  }

  #paymentForm .checkbox-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
  }

  #paymentForm .payment-clone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background-color: #f5f5f5;
    height: 60px;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #paymentForm .payment-clone:hover {
    background-color: #ebebeb;
  }

  #paymentForm .payment-clone .desc {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #paymentForm .payment-clone .desc span {
    font-size: 1.05rem;
  }

  #paymentForm .payment-clone input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #865ba6;
    cursor: pointer;
    background-color: #fff;
    position: relative;
  }

  #paymentForm .payment-clone input[type="radio"]:checked {
    background-color: #865ba6;
  }

  #paymentForm .payment-clone input[type="radio"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
  }

  #paymentForm .bottom-text {
    margin-left: 45px;
    margin-top: -10px;
  }

  #paymentForm .bottom-text p {
    color: #555;
    font-size: 0.9rem;
    font-weight: 300;
  }

  #paymentForm .finish-form {
    margin-top: 50px;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
  }

  #paymentForm .finish-form .f-f-select div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }

  #paymentForm .finish-form .f-f-select div input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 28px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #865ba6;
    cursor: pointer;
    margin-right: 12px;
    background-color: #fff;
    position: relative;
  }

  #paymentForm .finish-form .f-f-select div input[type="checkbox"]:checked {
    background-color: #865ba6;
  }

  #paymentForm
    .finish-form
    .f-f-select
    div
    input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
  }

  #paymentForm .finish-form .f-f-select div label {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.4;
  }

  #paymentForm .finish-form .f-f-select div label span {
    color: #865ba6;
    font-weight: bold;
    cursor: pointer;
  }

  #paymentForm .finish-form .finish-btn {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }

  #paymentForm .finish-form button {
    min-width: 350px;
    height: 60px;
    border-radius: 50px;
    background: #865ba6;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
  }

  #paymentForm .finish-form button:hover {
    background-color: #6d4985;
  }

  /* Hidden class for desktop */
  .hidden {
    display: none !important;
  }
}

/* Skeleton Loader Styles */
.cart-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-skeleton-item {
  display: flex;
  width: 100%;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

.skeleton-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-pass {
  height: 14px;
  width: 40%;
  border-radius: 4px;
}

.skeleton-title {
  height: 20px;
  width: 70%;
}

.skeleton-title-second {
  height: 18px;
  width: 55%;
  border-radius: 6px;
}

.skeleton-category {
  height: 16px;
  width: 50%;
}

.skeleton-price {
  height: 18px;
  width: 40%;
}

.skeleton-price-total {
  height: 28px;
  width: 120px;
  border-radius: 6px;
  background: linear-gradient(90deg, #d4b5e8 25%, #865ba6 50%, #d4b5e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  opacity: 0.7;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Cart Container Height and Overflow */
.cart-products-container {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

.cart-products-container::-webkit-scrollbar {
  width: 6px;
}

.cart-products-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cart-products-container::-webkit-scrollbar-thumb {
  background: #865ba6;
  border-radius: 10px;
}

.cart-products-container::-webkit-scrollbar-thumb:hover {
  background: #6d4985;
}

/* Mobile Skeleton and Container Styles */
@media (max-width: 499px) {
  .skeleton-image {
    width: 85px;
    height: 85px;
    border-radius: 14px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
  }

  .skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .skeleton-pass {
    height: 10px;
    width: 35%;
    border-radius: 4px;
    background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
  }

  .skeleton-category {
    height: 12px;
    width: 45%;
    border-radius: 4px;
    background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
  }

  .skeleton-title {
    height: 14px;
    width: 90%;
    border-radius: 6px;
    background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-top: 2px;
  }

  .skeleton-title-second {
    height: 14px;
    width: 70%;
    border-radius: 6px;
    background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
  }

  .skeleton-price {
    height: 18px;
    width: 50%;
    border-radius: 6px;
    background: linear-gradient(90deg, #d4b5e8 25%, #b89dd1 50%, #d4b5e8 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-top: 4px;
  }

  .skeleton-delete {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #d4b5e8 25%, #865ba6 50%, #d4b5e8 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    box-shadow: 0 2px 8px rgba(134, 91, 166, 0.25);
  }

  .cart-products-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
  }

  .cart-products-container::-webkit-scrollbar {
    width: 4px;
  }

  .cart-products-container::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
  }

  .cart-products-container::-webkit-scrollbar-thumb {
    background: #865ba6;
    border-radius: 10px;
  }

  .cart-products-container::-webkit-scrollbar-thumb:hover {
    background: #6d4985;
  }
}

/* Input Error Messages */
.input-error-msg {
  color: #dc3545;
  font-weight: 500;
  font-size: 0.85em;
  margin-top: 5px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#paymentForm .input-c input.error,
#paymentForm .input-c textarea.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.section-error-msg {
  color: #dc3545;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
  align-items: center;
  gap: 8px;
}

.section-error-msg i {
  font-size: 1.1rem;
}

.section-error-msg.show {
  display: flex;
  animation: fadeIn 0.3s ease-in;
}

.section-error-highlight {
  border: 2px solid #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  border-radius: 12px;
}

/* Coming Soon Badge */
.coming-soon-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
}

/* Disabled Payment Option */
.payment-clone:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed !important;
  background-color: #f8f9fa !important;
  position: relative;
}

.payment-clone:has(input:disabled):hover {
  background-color: #f8f9fa !important;
}

.payment-clone:has(input:disabled)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: not-allowed;
}

/* Online Payment Modal */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease-out;
  backdrop-filter: blur(5px);
}

.payment-modal.show {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.payment-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s ease-out;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.payment-modal-header {
  background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
  color: white;
  padding: 35px 30px;
  text-align: center;
  position: relative;
}

.payment-modal-header i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

.payment-modal-header h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.payment-modal-body {
  padding: 40px 35px 35px 35px;
  color: #2d3436;
  line-height: 1.8;
}

.payment-modal-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #495057;
}

.payment-modal-body p:first-child {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 20px;
}

.payment-modal-body strong {
  color: #865ba6;
  font-weight: 600;
}

.payment-modal-footer {
  padding: 0 35px 35px 35px;
  text-align: center;
}

.btn-close-modal {
  background: linear-gradient(135deg, #865ba6 0%, #6d4985 100%);
  color: white;
  border: none;
  padding: 16px 60px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(134, 91, 166, 0.3);
  letter-spacing: 0.5px;
}

.btn-close-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(134, 91, 166, 0.4);
  background: linear-gradient(135deg, #6d4985 0%, #865ba6 100%);
}

.btn-close-modal:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(134, 91, 166, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .payment-modal-content {
    max-width: 90%;
    margin: 20px;
  }

  .payment-modal-header {
    padding: 25px 20px;
  }

  .payment-modal-header i {
    font-size: 2.5rem;
  }

  .payment-modal-header h3 {
    font-size: 1.2rem;
  }

  .payment-modal-body {
    padding: 30px 20px 25px 20px;
  }

  .payment-modal-body p {
    font-size: 0.95rem;
  }

  .payment-modal-footer {
    padding: 0 20px 25px 20px;
  }

  .btn-close-modal {
    padding: 12px 40px;
    font-size: 1rem;
  }

  .coming-soon-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}
