    html {
      min-height: 100%;
    }
    body {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
      min-height: 100vh;
    }
    main {
      -webkit-box-flex: 1;
          -ms-flex: 1 0 auto;
              flex: 1 0 auto;
    }
a {
  text-decoration: none !important;
}
.table td.w-auto {
    font-size: 0.875rem; /* 14px when base is 16px */
    line-height: 1.4;
}
.img-float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
    max-width: 40%;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.img-float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    max-width: 40%;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.ratio-16x9 {
    width: 100%;
    height: auto;
}

/* Product description text size */
.table td small {
    font-size: 0.75rem; /* 12px when base is 16px */
    line-height: 1.2;
}

/* Credit Card Form Styling */
#ccnumber,
#ccexp,
#cvv {
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: 500;
    padding-left: 0.75rem;
    -webkit-transition: border-color 0.2s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
}

/* Credit Card Number Formatting */
#ccnumber {
    padding-left: 0.75rem;
}

/* Credit Card Number placeholder display */
#ccnumber::-webkit-input-placeholder {
    color: rgba(170, 170, 170, 0.7);
    letter-spacing: 1px;
}
#ccnumber::-moz-placeholder {
    color: rgba(170, 170, 170, 0.7);
    letter-spacing: 1px;
}
#ccnumber:-ms-input-placeholder {
    color: rgba(170, 170, 170, 0.7);
    letter-spacing: 1px;
}
#ccnumber::-ms-input-placeholder {
    color: rgba(170, 170, 170, 0.7);
    letter-spacing: 1px;
}
#ccnumber::placeholder {
    color: rgba(170, 170, 170, 0.7);
    letter-spacing: 1px;
}

/* Credit Card Expiration Date Styling */
#ccexp {
    letter-spacing: 0px;
}

/* CVV Code Styling */
#cvv {
    letter-spacing: 2px;
}

/* Add a card brand icon for different card types */
.cc-brand-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 30px;
    height: 20px;
}

/* Credit Card Fields Focus Styling */
#ccnumber:focus,
#ccexp:focus,
#cvv:focus {
    -webkit-box-shadow: 0 0 0 0.25rem rgba(245, 183, 53, 0.25);
            box-shadow: 0 0 0 0.25rem rgba(245, 183, 53, 0.25);
    border-color: #f5b735;
    outline: 0;
}

/* Custom validation styling for credit card fields */
#ccnumber.is-invalid,
#ccexp.is-invalid,
#cvv.is-invalid {
    border-color: #e74c3c;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#ccnumber.is-valid,
#ccexp.is-valid,
#cvv.is-valid {
    border-color: #2ecc71;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%232ecc71' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Position feedback messages appropriately */
.credit-card-group {
    position: relative;
}

/* Make credit card fields responsive */
@media (max-width: 767.98px) {
    .credit-card-fields-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .credit-card-fields-row > div {
        width: 100%;
        margin-bottom: 1rem;
    }
}