/* Responsive checkout layout. */

@media (max-width: 1024px) {
    .osp-3sc-checkout-container,
    .osp-3sc-checkout-container.payment-step {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .osp-3sc-main-content {
        width: 100%;
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    .osp-3sc-checkout-container > .osp-3sc-sidebar {
        width: 100%;
        grid-column: 1;
        grid-row: auto;
        order: 2;
        position: static;
    }

    .osp-3sc-reset-summary-card--standalone {
        width: 100%;
        grid-column: 1;
        grid-row: auto;
        order: 0;
    }

    .osp-3sc-expert-slides {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .osp-3sc-step-progress {
        padding: 15px 16px;
    }

    .osp-3sc-steps {
        gap: 9px;
    }

    .osp-3sc-step-separator {
        min-width: 14px;
    }

    .osp-3sc-main-content {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .challenge-selector .radio-group {
        width: 100%;
    }

    .challenge-selector h4 {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .account-type-selector,
    .challenge-step-selector {
        margin-bottom: 16px;
    }

    .account-size-selector {
        margin-bottom: 0;
    }

    .account-size-selector .radio-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
        border-radius: 26px;
    }

    .account-size-selector .radio-group.has-four-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-size-selector .radio-label {
        width: 100%;
        min-width: 0;
    }

    #wc_checkout_add_ons .form-row {
        margin-bottom: 10px !important;
        padding: 0 !important;
    }

    #wc_checkout_add_ons .checkbox,
    #wc_checkout_add_ons .form-row label.checkbox {
        padding: 10px 12px;
        font-size: 12px;
    }

    #wc_checkout_add_ons .woocommerce-input-wrapper {
        margin-right: 9px;
    }

    #wc_checkout_add_ons .addon-content {
        gap: 8px;
    }

    #wc_checkout_add_ons .addon-price {
        padding-left: 6px;
        font-size: 12px;
    }

    .addon-new-badge,
    .addon-popular-badge {
        min-height: 16px;
        margin-left: 5px;
        padding: 3px 6px;
        font-size: 8px;
    }

    .addon-info-icon {
        margin-left: 4px;
    }

    .addon-info-icon svg {
        width: 16px;
        height: 16px;
    }

    .pro-included-addons-heading {
        font-size: 13px;
    }

    .pro-included-addons-box::before {
        top: 8px;
    }

    .pro-included-addons-list {
        gap: 10px;
    }

    .pro-included-addon-row {
        padding: 10px 12px;
        gap: 9px;
    }

    .pro-included-addon-title,
    .pro-included-addon-price {
        font-size: 12px;
    }

    .bf-addon-offer {
        padding: 10px 18px;
    }

    .bf-addon-offer-inner {
        gap: 10px;
    }

    .bf-addon-offer-image {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .bf-addon-offer-message {
        font-size: 12px;
    }
}

@media (max-width: 477px) {
    .osp-3sc-checkout-wrapper {
        padding-inline: 12px;
    }

    .osp-3sc-checkout-header {
        margin: 28px 0;
    }

    .osp-3sc-main-headline {
        font-size: 24px;
    }

    .osp-3sc-main-subtitle {
        max-width: 297px;
        margin-top: 11px;
        font-size: 14px;
        line-height: 1.55;
    }

    .osp-3sc-step-progress {
        margin-bottom: 14px;
        padding: 13px 11px;
        border-radius: var(--osp-radius-card);
    }

    .osp-3sc-steps {
        max-width: none;
        gap: 6px;
    }

    .osp-3sc-step {
        min-width: 0;
        gap: 6px;
    }

    .osp-3sc-step-number {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 11px;
    }

    .osp-3sc-step-number .step-checkmark svg {
        width: 13px;
        height: 13px;
    }

    .osp-3sc-step-title {
        max-width: 78px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.2;
        text-overflow: ellipsis;
    }

    .osp-3sc-step-separator {
        min-width: 8px;
    }

    .osp-3sc-checkout-container {
        gap: 14px;
    }

    .osp-3sc-main-content,
    .osp-3sc-sidebar-box {
        padding: 20px 18px;
        border-radius: var(--osp-radius-card);
    }

    .osp-3sc-step-header {
        margin-bottom: 24px;
        padding-bottom: 17px;
    }

    .osp-3sc-step-header h2 {
        font-size: 24px;
    }

    .osp-selected-product {
        margin-bottom: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .osp-selected-product-name {
        font-size: 17px;
    }

    .addons-title {
        font-size: 16px;
    }

    .addons-title {
        padding-top: 24px;
    }

    .radio-group {
        width: 100%;
    }

    .radio-label {
        min-height: 40px;
        min-width: 0;
        padding-inline: 13px;
        flex: 1 1 calc(33.333% - 4px);
    }

    .radio-text {
        font-size: 13px;
    }

    .popular-badge {
        top: 0;
        padding: 4px 9px;
        font-size: 9px;
    }

    .osp-3sc-reset-summary-card {
        padding: 16px;
    }

    .osp-3sc-reset-account-name {
        font-size: 18px;
    }

    .osp-3sc-reset-addon-tag {
        padding: 4px 9px;
        font-size: 11px;
    }

    .osp-3sc-order-summary h3 {
        margin-bottom: 14px;
        font-size: 22px;
    }

    .osp-3sc-review-table tbody tr.osp-3sc-cart-item td.product-name {
        font-size: 16px;
    }

    .osp-3sc-review-table tr {
        gap: 12px;
    }

    .osp-3sc-review-table tfoot tr.osp-3sc-order-total {
        padding-top: 20px;
    }

    .osp-3sc-review-table tfoot tr.osp-3sc-order-total th,
    .osp-3sc-review-table tfoot tr.osp-3sc-order-total td {
        font-size: 24px;
    }

    .osp-3sc-original-price {
        font-size: 14px;
    }

    .osp-3sc-total-trust-row td {
        gap: 6px 12px;
    }

    .osp-3sc-trust-label {
        font-size: 12px;
    }

    .osp-3sc-coupon-savings-msg {
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
        line-height: 1.6;
    }

    .osp-3sc-savings-content {
        align-items: center;
        gap: 6px;
        line-height: 1.65;
    }

    .osp-3sc-change-coupon-btn {
        margin-top: 0;
    }

    .osp-3sc-trusted-header {
        margin-bottom: 12px;
        gap: 8px;
    }

    .osp-3sc-trusted-traders h3 {
        font-size: 15px;
    }

    .osp-3sc-expert-nav {
        width: 30px;
        height: 30px;
    }

    .osp-3sc-expert-avatar {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .osp-3sc-expert-social {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .osp-3sc-expert-review {
        font-size: 12px;
        line-height: 1.58;
    }

    .osp-special-offer-banner {
        width: calc(100% - 24px);
        margin-top: 20px;
    }

    .osp-banner-content {
        padding: 22px 18px;
    }

    .osp-banner-title {
        font-size: 19px;
    }

    .osp-banner-description {
        font-size: 13px;
    }

}

@media screen and (max-width: 499px) {
    button[aria-label="Open Form"] {
        width: 50px !important;
        height: 50px !important;
    }
}

@media screen and (max-width: 767px) {
    div[aria-label="Open Form"] {
        bottom: 60px !important;
        width: 50px !important;
        height: 50px !important;
    }
}
