/* Responsive & Mobile Styles */

/* Tablet Portrait - < 950px */
@media (max-width: 950px) {
    .osp-3sc-checkout-container {
        flex-direction: column;
        gap: 20px;
    }

    .osp-3sc-sidebar {
        width: 100%;
        order: 2;
        /* Move sidebar to bottom */
        position: static;
    }

    .osp-3sc-main-content {
        width: 100%;
        order: 1;
        padding: 50px 30px;
        /* Keep main content at top */
    }

    /* Checkout header responsive adjustments */
    .osp-3sc-main-headline {
        font-size: 30px;
    }

    .osp-3sc-main-subtitle {
        font-size: 16px;
    }
}

/* Mobile Portrait - < 478px */
@media (max-width: 477px) {
    .osp-3sc-checkout-wrapper {
        padding: 15px;
    }

    /* Step Progress Indicator */
    .osp-3sc-step-progress {
        margin-bottom: 0px;
        padding: 15px 20px;
    }

    .radio-group {
        gap: 15px;
    }

    .osp-3sc-trusted-traders li {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 18px;
    }
    
    .osp-3sc-trusted-traders h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .addons-title,
    .challenge-selector h4 {
        font-size: 15px;
    }

    .account-size-selector,
    .challenge-step-selector {
        margin-bottom: 25px;
    }

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

    /* Product name + edit button: stack vertically on mobile */
    .osp-selected-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .osp-3sc-checkout-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .osp-3sc-sidebar {
        width: 100%;
        order: 2;
        position: static;
    }

    .osp-3sc-main-content {
        order: 1;
        padding: 30px 16px;
    }

    /* Checkout header mobile styles */
    .osp-3sc-checkout-header {
        margin: 20px 0 30px 0;
    }

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

    .osp-3sc-main-subtitle {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Keep steps horizontal on mobile */
    .osp-3sc-steps {
        flex-wrap: nowrap;
        max-width: none;
        gap: 10px;
    }

    .osp-3sc-step {
        flex: 0 0 auto;
        gap: 8px;
    }

    .osp-3sc-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .osp-3sc-step-number .step-checkmark {
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

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

    .osp-3sc-step-title {
        font-size: 12px;
        white-space: nowrap;
    }

    .osp-3sc-checkout-wrapper {
        padding: 10px;
    }

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

    .osp-3sc-step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .osp-3sc-step-number .step-checkmark {
        font-size: 16px;
    }

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

    .osp-3sc-step-header {
        margin-bottom: 30px;
    }

    .osp-3sc-order-summary h3 {
        margin-bottom: 0;
    }

    .osp-3sc-coupon-wrapper {
        margin-bottom: 0;
    }

    .radio-label {
        padding: 12px 25px;
    }

    /* Order summary mobile styles */
    .osp-3sc-review-table tbody tr.osp-3sc-cart-item td.product-name {
        font-size: 16px;
    }

    .woocommerce table.shop_table {
        font-size: 14px;
    }

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

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

    .osp-3sc-sidebar-box {
        padding: 20px;
    }
    
    .popular-badge,
    .new-badge {
        top: -11px;
        font-size: 11px;
        padding: 0px 8px;
    }

    #wc_checkout_add_ons .checkbox {
        font-size: 14px;
    }

    .woocommerce form #wc_checkout_add_ons .form-row {
        margin: 0 0 20px;
    }
}



/* === WooCommerce Responsive Media Queries === */

/* Styles for screens up to 499px wide */
@media screen and (max-width: 499px) {

    /* Specific styling for buttons with aria-label="Open Form" */
    button[aria-label="Open Form"] {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Styles for screens up to 767px wide */
@media screen and (max-width: 767px) {

    /* Styling for divs with aria-label="Open Form" (likely a container for the button) */
    div[aria-label="Open Form"] {
        bottom: 60px !important;
        width: 50px !important;
        height: 50px !important;
    }
}