/* Book checkout: reuses the Academy checkout cards and the login form language
   (same colours, radii and Gilroy weights as components/auth-shell). */

.book-checkout .myactpagedata_title {
    margin-top: 36px;
}

.book-checkout .fullpageinerdata_iner {
    padding-bottom: 20px;
}

.book-checkout-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 0 22px;
    border-bottom: 1px solid #ececf3;
}

/* Same treatment as .resource-detail-cover img on the book page: contained, never cropped. */
.book-checkout-item .book-checkout-cover {
    display: flex;
    flex: 0 0 160px;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 210px;
    padding: 8px;
    border-radius: 12px;
    background: #f3f6fb;
    overflow: hidden;
}

.book-checkout-item .book-checkout-cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.book-checkout-item h3 {
    margin: 0 0 6px;
    color: #141146;
    font-family: "Gilroy-Bold";
    font-size: 20px;
    line-height: 1.25;
}

.book-checkout-item p {
    margin: 0;
    color: #a0a0a0;
    font-family: "Gilroy-SemiBold";
    font-size: 14px;
}

.book-checkout-item .book-checkout-format {
    margin-top: 8px;
    color: #596178;
    font-family: "Gilroy-Medium";
}

.book-checkout .tabletotalprice {
    padding-top: 18px;
}

.book-checkout .payhistdatainer_title {
    padding: 18px 22px;
    border-radius: 16px 16px 0 0;
}

.book-checkout-steps {
    display: flex;
    gap: 6px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.book-checkout-steps li {
    flex: 1;
    padding: 8px 0 0;
    border-top: 3px solid #e4e6f0;
    color: #a0a0a0;
    font-family: "Gilroy-SemiBold";
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.book-checkout-steps li.is-done {
    border-top-color: #141146;
    color: #141146;
}

.book-checkout-steps li.is-current {
    border-top-color: #ef4362;
    color: #ef4362;
}

.book-checkout-info {
    margin: 0 0 22px;
    color: #596178;
    font-family: "Gilroy-Medium";
    font-size: 15px;
    line-height: 1.5;
}

.book-checkout-info strong {
    color: #151348;
    font-family: "Gilroy-Bold";
}

.book-checkout-field {
    margin-bottom: 22px;
}

.book-checkout-field label {
    display: block;
    margin-bottom: 10px;
    color: #596178;
    font-family: "Gilroy-Bold";
    font-size: 15px;
}

.book-checkout-input {
    position: relative;
}

.book-checkout-input .field-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    transform: translateY(-50%);
    color: #7d8498;
    font-size: 18px;
}

.book-checkout-field .form-control {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 54px;
    border: 1px solid #cfd4e3;
    border-radius: 6px;
    background: #ffffff;
    color: #151348;
    box-shadow: none;
    font-family: "Gilroy-Medium";
    font-size: 15px;
}

.book-checkout-field .form-control:focus {
    border-color: #151348;
    box-shadow: 0 0 0 3px rgba(21, 19, 72, 0.08);
    outline: none;
}

.book-checkout-field input.book-checkout-code {
    letter-spacing: 0.35em;
    font-family: "Gilroy-Bold";
    font-size: 20px;
}

.book-checkout-field input[type="number"]::-webkit-outer-spin-button,
.book-checkout-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.book-checkout-field input[type="number"] {
    -moz-appearance: textfield;
}

.book-checkout-field.errorsetcl .form-control {
    border-color: #ef4362;
}

.book-checkout-field .errortext {
    margin: 8px 0 0;
    color: #ef4362;
    font-family: "Gilroy-Medium";
    font-size: 13px;
}

.book-checkout-submit {
    display: block;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 6px;
    background: #141146;
    color: #ffffff;
    font-family: "Gilroy-Bold";
    font-size: 17px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.book-checkout-submit:hover,
.book-checkout-submit:focus {
    background: #201b68;
    color: #ffffff;
    transform: translateY(-1px);
}

.book-checkout-pay {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 68px;
    background: linear-gradient(to right, rgba(22, 24, 115, 1) 0%, rgba(255, 15, 99, 1) 100%);
    color: #ffffff;
    font-family: "Gilroy-Bold";
    font-size: 16px;
    text-align: center;
    box-shadow: 0px 3px 11px 0px rgba(234, 59, 105, 0.41);
    transition: transform 0.2s ease;
}

.book-checkout-pay:hover,
.book-checkout-pay:focus {
    color: #ffffff;
    transform: translateY(-1px);
}

.book-checkout-summary {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid #ececf3;
    border-radius: 10px;
    background: #f9f9fd;
}

.book-checkout-summary p {
    margin: 0 0 6px;
    color: #596178;
    font-family: "Gilroy-Medium";
    font-size: 14px;
}

.book-checkout-summary p:last-child {
    margin-bottom: 0;
}

.book-checkout-summary strong {
    color: #151348;
    font-family: "Gilroy-Bold";
}

.book-checkout-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 44px;
    background: rgba(40, 167, 69, 0.1);
    color: #1e7e34;
    font-family: "Gilroy-Bold";
    font-size: 13px;
}

.book-checkout-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    margin: 24px 0 0;
    color: #596178;
    font-family: "Gilroy-Medium";
    font-size: 15px;
    text-align: center;
}

.book-checkout-links a,
.book-checkout-links button {
    padding: 0;
    border: 0;
    background: none;
    color: #ef4362;
    font-family: "Gilroy-Bold";
    font-size: 15px;
}

.book-checkout-links a:hover,
.book-checkout-links button:hover {
    color: #c8213f;
    text-decoration: underline;
}

.book-checkout-links .book-checkout-back {
    color: #242074;
    font-family: "Gilroy-SemiBold";
}

.book-checkout .alert {
    border: 0;
    border-radius: 8px;
    font-family: "Gilroy-Medium";
}

@media (max-width: 991px) {
    .book-checkout .payhistdatacov1,
    .book-checkout .payhistdatacov2 {
        width: 100%;
        padding-left: 0;
    }

    .book-checkout .payhistdatacov2 {
        margin-top: 25px;
    }
}

@media (max-width: 575px) {
    .book-checkout-item {
        align-items: flex-start;
    }

    .book-checkout-item .book-checkout-cover {
        flex-basis: 120px;
        width: 120px;
        height: 160px;
    }

    .book-checkout .tabletotalprice p span {
        display: block;
        margin: 6px 0 0;
    }
}
