/* -- Step panels -- */
.checkout-step{display:none;}
.checkout-step.active{display:block;}
/* -- Nav buttons -- */
.btn-step-back{background:transparent;border:1px solid #004c89;color:#004c89;border-radius:5px;padding:.5rem 1.5rem;font-weight:300;font-size: 15px;cursor:pointer;transition:color .2s,background-color .2s,border-color .2s;}
.btn-step-back:hover{background:#004c89;color:#fff;}
.btn-step-next{padding:.5rem 1.8rem!important;}
/* Something upstream caps the next button's width, which pushed its arrow onto a second line.
   Keep label and arrow on one row and never shrink below them. */
.btn-step-back,.btn-step-next{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0;width:auto;max-width:none;}
/* PayPal cannot be saved for renewals until Vault is approved, so the save box only shows for cards. */
.checkout-step:has(#pp:checked) .checkout-save-card[data-hide-for-paypal]{display:none;}
.step-nav{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;align-items:center;margin-top:1.5rem;}
/* -- Account info collapsible toggle -- */
.transition-transform{transition:transform .2s ease;}
.rotate-180{transform:rotate(180deg);}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    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='%23dc3545'%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='%23dc3545' 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);
}
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.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);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}
.form-check-input.is-invalid {
    border-color: #dc3545;
}
.form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}
.checkout-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}
.checkout-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
    padding-left: 0;
    margin-bottom: 0;
}
.checkout-radio-option .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: 0;
}
.checkout-radio-option .form-check-label {
    margin-bottom: 0;
}
