div.row:nth-child(2) > div {
    border-bottom: solid 1px rgba(0, 0, 0, 0.25);
}

div.input-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    margin-bottom: 0.4em;
}

div.input-grid label {
    text-align: left;
}

fieldset {
    border: none;
}

ul.licence-type-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: large;
}

ul.licence-type-list li {
    margin: 0.2em 0;
    padding: 0.3em 0;
    display: grid;
    grid-template-columns: 4fr 1fr;
    border-radius: 0.2em;
}

ul.licence-type-list li label {
    font-weight: bold;
}

ul.licence-type-list li:has(input[type="radio"]:checked) {
    outline: 2px solid var(--theme-orange);
    outline-offset: 1px;
}

p.licence-description {
    margin: 0.3em 0;
    padding-left: 1.5em;
    font-size: medium;
}

p {
    font-family: "Cabin", "Verdana", sans-serif;
}

.licence-price {
    font-size: xx-large;
    font-weight: bold;
    text-align: right;
    padding-right: 0.5em;
}

#stripe-options,
#paypal-options {
    padding: 0.5em;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
    border-radius: 0.5em;
    margin: 1em 0;
}

#stripe-container {
    margin-bottom: 1em;
}

#stripe-pay-btn {
    padding: 0.5em 0;
    width: 100%;
    min-height: 35px;
    margin: auto;
    display: inline-block;
    background-color: var(--theme-blue-darkest);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.2rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: x-large;
    font-weight: bold;
}

#stripe-pay-btn:hover {
    background-color: var(--theme-blue-dark);
    text-decoration: none;
}

#stripe-pay-btn>img {
    margin-left: 0.5em;
    max-height: 1em;
    max-width: 20%;
    vertical-align: text-bottom;
}

#stripe-pay-btn:disabled {
    cursor: not-allowed;
}

#paypal-options>p {
    text-align: center;
    margin: 0.5em 0;
    font-weight: bold;
    text-transform: uppercase;
}

#payment-options>p::before,
#payment-options>p::after {
    content: "";
    display: inline-block;
    width: 20%;
    border-bottom: 1px solid var(--theme-grey-dark);
    margin: 0 1em;
    vertical-align: middle;
}

#paypal-options,
#stripe-options {
    text-align: center;
}

#billing-address-btn {
    flex-grow: 0;
    background: transparent;
    border: none;
    color: var(--theme-blue-darkest);
    font-size: medium;
    cursor: pointer;
    padding: 0;
    margin: 1em 0;
    border-radius: 0.2em;
}

#billing-address-btn:hover, #billing-address-btn:focus-visible {
    outline: solid 2px var(--theme-orange);
    outline-offset: 3px;
}

#billing-address-btn-icon.rotate > img {
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

#billing-address-btn-icon > img {
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

#billing-address-box {
    display: block;
    transition: all 0.2s ease-in-out;
    transition-behavior: allow-discrete;
    opacity: 1;
}

#billing-address-box.hidden {
    display: none;
    opacity: 0;
}

#payment-summary > div {
    text-align: center;
}

#payment-summary table {
    font-size: large;
    display: inline-table;
    width: 90%;
    margin: 1em auto;
    font-family: "Cabin", "Verdana", sans-serif;
    border-collapse: collapse;
}

#payment-summary table td {
    text-align: left;
    padding: 0.3em 0;
}

#payment-summary table tr > td:last-child {
    font-weight: bold;
    text-align: right;
}

#payment-summary table tr:last-child {
    font-size: x-large;
    font-weight: bold;
}

#payment-summary table tr:last-child > td {
    border-top: solid 1px rgba(0, 0, 0, 0.25);
}

#add-address-btn {
    background: transparent;
    border: none;
    color: var(--theme-blue-darkest);
    font-size: medium;
    cursor: pointer;
    padding: 0.3;
    margin: 0.5em 0 1em 0;
    border-radius: 0.2em;
}

#add-address-btn:hover, #add-address-btn:focus-visible {
    outline: solid 2px var(--theme-orange);
    outline-offset: 3px;
}

#add-address-btn.rotate img {
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

#add-address-btn img {
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

form select {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

form input[type="text"], form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}

.grecaptcha-badge {
    visibility: hidden;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#stripe-processing-img {
    animation: spin 2s linear infinite;
}
