// Modern Variables
$primary-color: #4a6cf7;
$secondary-color: #1e293b;
$border-color: #e2e8f0;
$white: #ffffff;
$light-bg: #f8fafc;
$lighter-bg: #f1f5f9;
$text-color: #475569;
$dark-text: #1e293b;
$box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
$input-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
$transition: all 0.2s ease-in-out;
$focus-shadow: 0 0 0 2px rgba($primary-color, 0.3);
$success-color: #10b981;
$danger-color: #ef4444;
$warning-color: #f59e0b;
$light-gray: #f1f5f9;
$medium-gray: #e2e8f0;
$dark-gray: #334155;
$border-radius: 6px;

// Breakpoints
$tablet: 1024px;
$small-tablet: 782px;
$mobile: 500px;

// Main admin container
.wcps-admin {
    margin: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: $text-color;

    .wp-heading-inline {
        display: inline-block;
        margin-right: 12px;
        font-weight: 600;
        color: $dark-text;
        font-size: 24px;
    }

    .page-title-action {
        margin-top: -3px;
        background: $white;
        border: 1px solid $primary-color;
        color: $primary-color;
        border-radius: 30px;
        padding: 6px 18px;
        font-weight: 500;
        transition: $transition;
        box-shadow: 0 2px 6px rgba($primary-color, 0.15);

        &:hover {
            background: $primary-color;
            border-color: $primary-color;
            color: $white;
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba($primary-color, 0.25);
        }
    }

    // Empty state styling
    .wcps-empty-state {
        background: $white;
        border: 1px solid $light-gray;
        border-radius: $border-radius;
        box-shadow: $box-shadow;
        padding: 40px;
        text-align: center;
        margin: 40px 0;

        p {
            font-size: 17px;
            line-height: 1.6;
            margin-bottom: 24px;
            color: $text-color;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .button-primary {
            padding: 10px 24px;
            height: auto;
            font-size: 15px;
            line-height: 1.5;
            border-radius: 30px;
            font-weight: 500;
            box-shadow: 0 2px 10px rgba($primary-color, 0.2);

            &:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba($primary-color, 0.25);
            }
        }
    }

    // Search box enhancements
    .search-box {
        float: right;
        margin: 0 0 15px;
        position: relative;

        input[type="search"] {
            padding: 0 14px;
            height: 38px;
            width: 280px;
            border-radius: 20px;
            border: 1px solid $medium-gray;
            box-shadow: $input-shadow;
            transition: $transition;
            font-size: 14px;

            &:focus {
                border-color: $primary-color;
                box-shadow: $focus-shadow;
                outline: none;
            }
        }

        #search-submit {
            margin-left: 8px;
            height: 38px;
            line-height: 36px;
            padding: 0 16px;
            border-radius: 20px;
            border: 1px solid $primary-color;
            background: $primary-color;
            color: $white;
            font-weight: 500;
            box-shadow: 0 2px 6px rgba($primary-color, 0.15);
            transition: $transition;

            &:hover {
                background: $primary-color;
                box-shadow: 0 3px 8px rgba($primary-color, 0.25);
                transform: translateY(-1px);
            }
        }
    }

    // Table styling
    .wcps-showcases-table {
        border-collapse: separate;
        border-spacing: 0;
        margin-top: 20px;
        box-shadow: $box-shadow;
        border-radius: $border-radius;
        overflow: hidden;
        width: 100%;
        background: $white;
        border: 1px solid $border-color;

        th {
            padding: 15px 16px;
            font-weight: 600;
            text-align: left;
            color: $secondary-color;
            background-color: $light-bg;
            border-bottom: 1px solid $border-color;
            font-size: 14px;
            transition: $transition;
            position: relative;

            &:after {
                content: '';
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                width: 1px;
                background: $border-color;
            }

            &:last-child:after {
                display: none;
            }

            &.column-cb {
                width: 30px;
            }
        }

        td {
            padding: 14px 16px;
            vertical-align: middle;
            border-bottom: 1px solid $border-color;
            font-size: 14px;
            transition: $transition;

            &.check-column {
                padding: 0px 0 0 8px;
            }

            a {
                text-decoration: none;
                color: $primary-color;
                transition: $transition;
                font-weight: 500;

                &:hover {
                    color: $primary-color;
                    text-decoration: underline;
                }
            }

            .button {
                margin-right: 8px;
                border-radius: 20px;
                padding: 5px 14px;
                height: auto;
                transition: $transition;
                font-weight: 500;

                &:last-child {
                    margin-right: 0;
                }

                &:hover {
                    transform: translateY(-1px);
                    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
                }
            }

            .wcps-shortcode-input {
                // width: calc(100% - 80px);
                width: calc(90% - 34px);
                min-width: 85px;
                background-color: $light-bg;
                border: 1px solid $border-color;
                border-radius: 6px;
                padding: 8px 12px;
                box-shadow: $input-shadow;
                font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
                font-size: 13px;
                color: $dark-gray;
                margin-right: 8px;
                font-size: 10px;
            }

            .wcps-copy-shortcode {
                min-width: 40px;
                text-align: center;
                position: relative;
                vertical-align: middle;
                transition: $transition;
                border-radius: 20px;
                padding: 0px 6px;
                font-weight: 500;
                background: $light-bg;
                font-size: 10px;

                &:hover {
                    background: $lighter-bg;
                    transform: translateY(-1px);
                    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
                }

                &.copied {
                    background: $success-color;
                    border-color: $success-color;
                    color: $white;
                    box-shadow: 0 4px 8px rgba($success-color, 0.2);
                }
            }
        }

        tr {
            &:last-child td {
                border-bottom: none;
            }

            &:hover {
                background-color: rgba($primary-color, 0.02);

                td {
                    box-shadow: inset 0 0 0 transparent,
                        0 1px 2px rgba(0, 0, 0, 0.03);
                }
            }
        }

        // Action buttons
        .wcps-delete-showcase {
            color: $danger-color;
            border-color: $danger-color;
            background: rgba($danger-color, 0.05);

            &:hover {
                background-color: $danger-color;
                color: $white;
                box-shadow: 0 3px 8px rgba($danger-color, 0.25);
            }
        }
    }

    // Pagination styling
    .tablenav {
        margin: 20px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .tablenav-pages {
            margin: 0 0 9px;

            .pagination-links {
                display: inline-flex;
                align-items: center;
                margin-left: 12px;

                .page-numbers {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    min-width: 32px;
                    height: 32px;
                    margin: 0 3px;
                    padding: 0 5px;
                    color: $text-color;
                    border: 1px solid $medium-gray;
                    border-radius: 6px;
                    background: $white;
                    font-size: 14px;
                    text-align: center;
                    text-decoration: none;
                    cursor: pointer;
                    transition: $transition;

                    &:hover {
                        background: $lighter-bg;
                        border-color: $medium-gray;
                        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
                    }

                    &.current {
                        border-color: $primary-color;
                        background: $primary-color;
                        color: $white;
                        font-weight: 600;
                        box-shadow: 0 2px 8px rgba($primary-color, 0.2);
                    }

                    &.dots {
                        border: none;
                        background: none;
                        box-shadow: none;

                        &:hover {
                            border: none;
                            background: none;
                            box-shadow: none;
                        }
                    }

                    &.prev,
                    &.next {
                        font-size: 16px;
                        padding: 0;
                    }
                }
            }

            .displaying-num {
                margin-right: 10px;
                color: $dark-gray;
                font-size: 13px;
                font-style: italic;
            }
        }

        .alignleft.actions {
            padding: 0;
            display: flex;
            align-items: center;

            select {
                margin-right: 8px;
                max-width: 200px;
            }
        }
    }

    // Bulk action buttons
    .bulkactions {
        display: inline-flex;
        align-items: center;

        select {
            margin-right: 8px;
            vertical-align: middle;
            height: 38px;
            border-radius: 6px;
            border: 1px solid $medium-gray;
            padding: 0 30px 0 12px;
            background-color: $white;
            color: $text-color;
            font-size: 14px;
            line-height: 2;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            transition: $transition;
            background-position: right 10px center;

            &:focus {
                border-color: $primary-color;
                box-shadow: $focus-shadow;
                outline: none;
            }
        }

        .action {
            vertical-align: middle;
            height: 38px;
            line-height: 36px;
            padding: 0 16px;
            border-radius: 6px;
            font-weight: 500;
            transition: $transition;

            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
            }
        }
    }

    // Checkbox styling
    .check-column {
        input[type=checkbox] {
            border: 2px solid $medium-gray;
            border-radius: 4px;
            background: $white;
            color: $white;
            clear: none;
            cursor: pointer;
            display: inline-block;
            line-height: 0;
            height: 20px;
            margin: -5px 5px 0 5px;
            outline: 0;
            padding: 0 !important;
            text-align: center;
            vertical-align: middle;
            width: 20px;
            min-width: 20px;
            box-shadow: none;
            transition: $transition;
            position: relative;
            appearance: none;
            -webkit-appearance: none;

            &:checked {
                background: $primary-color;
                border-color: $primary-color;

                &::before {
                    content: "";
                    position: absolute;
                    top: 3px;
                    left: 7px;
                    width: 5px;
                    height: 10px;
                    border: solid $white;
                    border-width: 0 2px 2px 0;
                    transform: rotate(45deg);
                }
            }

            &:hover {
                border-color: $primary-color;
            }
        }
    }

    // Button styling
    .button {
        display: inline-block;
        text-decoration: none;
        font-size: 14px;
        line-height: 2.15384615;
        min-height: 36px;
        margin: 0;
        padding: 0 16px;
        cursor: pointer;
        border-width: 1px;
        border-style: solid;
        border-color: $medium-gray;
        -webkit-appearance: none;
        border-radius: 6px;
        white-space: nowrap;
        box-sizing: border-box;
        transition: $transition;
        background: $white;
        font-weight: 500;
        color: $text-color;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

        &:hover {
            background: $light-bg;
            border-color: $medium-gray;
            color: $dark-text;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            transform: translateY(-1px);
        }

        &.button-primary {
            background: $primary-color;
            border-color: $primary-color;
            color: $white;
            box-shadow: 0 2px 6px rgba($primary-color, 0.2);

            &:hover {
                background: $primary-color;
                border-color: $primary-color;
                box-shadow: 0 4px 10px rgba($primary-color, 0.25);
                transform: translateY(-1px);
            }

            &:focus {
                box-shadow: 0 0 0 1px $white, 0 0 0 3px rgba($primary-color, 0.3);
                outline: none;
            }
        }
    }

    // Admin header
    .wcps-admin-header {
        margin-bottom: 30px;
        padding: 0 0 20px;
        border-bottom: 1px solid $light-gray;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .button-primary {
            padding: 0 18px;
            font-size: 14px;
            line-height: 36px;
            height: 38px;
            border-radius: 6px;
            font-weight: 500;
            box-shadow: 0 2px 6px rgba($primary-color, 0.15);
            transition: $transition;

            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 10px rgba($primary-color, 0.25);
            }
        }
    }

    // Responsive styles
    @media screen and (max-width: $small-tablet) {
        .search-box {
            float: none;
            margin-bottom: 20px;
            width: 100%;

            input[type="search"] {
                width: calc(100% - 90px);
                max-width: 100%;
                margin-right: 10px;
            }

            #search-submit {
                width: 80px;
                margin-left: 0;
            }
        }

        .tablenav {
            flex-direction: column;
            align-items: flex-start;

            .tablenav-pages {
                float: none;
                text-align: center;
                margin-top: 15px;
                width: 100%;
                display: flex;
                justify-content: center;
            }
        }

        .bulkactions {
            display: flex;
            flex-wrap: wrap;
            padding-bottom: 15px;
            width: 100%;

            select {
                width: 100%;
                margin-bottom: 10px;
                flex: 1 0 100%;
            }

            .action {
                width: 100%;
            }
        }

        .tablenav.top {
            margin-bottom: 20px;
        }

        .wcps-showcases-table {
            border-radius: $border-radius;
            overflow: hidden;
            box-shadow: $box-shadow;

            td.column-shortcode {
                .wcps-shortcode-input {
                    width: 100%;
                    margin-bottom: 8px;
                    font-size: 12px;
                }

                .wcps-copy-shortcode {
                    display: block;
                    width: 100%;
                }
            }

            th {
                display: none;

                &:first-child {
                    display: table-cell;
                    width: 35px;
                }
            }

            tr {
                position: relative;
                display: block;
                border-bottom: 1px solid $border-color;
                margin-bottom: 0;
                background: $white;

                &:last-child {
                    border-bottom: none;
                }

                &:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
                    position: relative;
                    display: block;
                    width: auto;
                    padding: 12px 12px 12px 35%;
                    text-align: left;

                    &:before {
                        position: absolute;
                        left: 12px;
                        width: 30%;
                        padding-right: 10px;
                        white-space: nowrap;
                        font-weight: 600;
                        content: attr(data-colname);
                        color: $dark-text;
                    }
                }

                &:not(.inline-edit-row):not(.no-items) td.column-primary~td {
                    border-top: 1px solid rgba(0, 0, 0, 0.05);
                }

                td {
                    border-bottom: none;
                }
            }
        }
    }

    @keyframes slideInUp {
        from {
            transform: translateY(15px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .wcps-showcases-table {
        tbody tr {
            animation: slideInUp 0.4s ease-in-out;
            animation-fill-mode: both;

            @for $i from 1 through 20 {
                &:nth-child(#{$i}) {
                    animation-delay: #{$i * 0.05}s;
                }
            }
        }
    }

    // Hover effects for rows
    tr {
        transition: $transition;

        &:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
    }
}

// OLD one end 

// Main Container NEW SCSS 
.wcps-admin.wcps-create-page {
    padding: 20px;

    .wcps-page-title {
        color: $dark-text;
        font-size: 2rem;
        font-weight: 600;
        margin: 0 0 2rem 0;
        padding: 0;
        border: none;
        text-shadow: none;
        margin-top: -15px;
    }

    // Panel Toggle Button
    .wcps-panel-toggle {
        margin-bottom: 1.5rem;
        display: none; // Hidden on desktop, shown on mobile

        @media (max-width: $tablet) {
            display: block;
        }

        .wcps-toggle-settings {
            background: $primary-color;
            color: $white;
            border: none;
            padding: 12px 20px;
            border-radius: $border-radius;
            font-weight: 500;
            cursor: pointer;
            transition: $transition;
            display: flex;
            align-items: center;
            gap: 8px;

            &:hover {
                background: $primary-color;
                transform: translateY(-1px);
            }

            .dashicons {
                font-size: 16px;
            }
        }
    }

    // Layout container as flexbox
    .wcps-layout-container {
        display: flex;
        gap: 20px;
    }

    .wcps-settings-column {
        width: 20%;
        min-width: 280px;
        max-width: 350px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        height: 100vh;
    }

    .wcps-preview-column {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        height: 100vh;

        .wcps-products-container {
            padding: 15px;

            .wcps-table {
                .wcps-product-title-col {
                    min-width: unset !important;
                    max-width: unset !important;
                }
            }

            .wcps-pagination {
                display: flex;
                justify-content: center;
                margin: 2rem 0;
                padding: 1rem 0;

                ul.page-numbers {
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                    list-style: none;
                    margin: 0;
                    padding: 0;

                    li {
                        display: inline-flex;

                        .page-numbers {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            min-width: 2.5rem;
                            height: 2.5rem;
                            padding: 0.5rem 0.75rem;
                            font-size: 0.875rem;
                            font-weight: 500;
                            text-decoration: none;
                            color: #374151;
                            background-color: #ffffff;
                            border: 1px solid #d1d5db;
                            border-radius: 0.375rem;
                            transition: all 0.2s ease-in-out;
                            cursor: pointer;

                            &:hover {
                                background-color: #f9fafb;
                                border-color: #9ca3af;
                                color: #111827;
                                transform: translateY(-1px);
                                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                            }

                            &:active {
                                transform: translateY(0);
                                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
                            }

                            &:focus {
                                outline: none;
                                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
                                border-color: #3b82f6;
                            }

                            &.current {
                                background-color: #3b82f6;
                                border-color: #3b82f6;
                                color: #ffffff;
                                font-weight: 600;
                                cursor: default;
                                pointer-events: none;

                                &:hover {
                                    background-color: #3b82f6;
                                    transform: none;
                                    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
                                }
                            }

                            &.dots {
                                border: none;
                                background: none;
                                color: #6b7280;
                                cursor: default;
                                pointer-events: none;
                                font-weight: 500;

                                &:hover {
                                    background: none;
                                    transform: none;
                                    box-shadow: none;
                                }
                            }

                            &.next,
                            &.prev {
                                font-size: 1rem;
                                font-weight: 600;
                                padding: 0.5rem 1rem;

                                &:hover {
                                    background-color: #eff6ff;
                                    border-color: #3b82f6;
                                    color: #3b82f6;
                                }
                            }
                        }

                        // Handle span elements (current page and dots)
                        span.page-numbers {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            min-width: 2.5rem;
                            height: 2.5rem;
                            padding: 0.5rem 0.75rem;
                            font-size: 0.875rem;
                            font-weight: 500;
                            border-radius: 0.375rem;

                            &.current {
                                background-color: #3b82f6;
                                color: #ffffff;
                                font-weight: 600;
                                box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
                            }

                            &.dots {
                                color: #6b7280;
                                font-weight: 500;
                                background: none;
                            }
                        }
                    }
                }
            }

            // Responsive design
            @media (max-width: 768px) {
                .wcps-pagination {
                    margin: 1.5rem 0;
                    padding: 0.75rem 0;

                    ul.page-numbers {
                        gap: 0.25rem;
                        flex-wrap: wrap;
                        justify-content: center;

                        li {
                            .page-numbers {
                                min-width: 2.25rem;
                                height: 2.25rem;
                                padding: 0.375rem 0.5rem;
                                font-size: 0.8rem;

                                &.next,
                                &.prev {
                                    padding: 0.375rem 0.75rem;
                                }
                            }

                            span.page-numbers {
                                min-width: 2.25rem;
                                height: 2.25rem;
                                padding: 0.375rem 0.5rem;
                                font-size: 0.8rem;
                            }
                        }
                    }
                }
            }

            @media (max-width: 480px) {
                .wcps-pagination {
                    ul.page-numbers {
                        gap: 0.125rem;

                        li {
                            .page-numbers {
                                min-width: 2rem;
                                height: 2rem;
                                padding: 0.25rem 0.375rem;
                                font-size: 0.75rem;
                            }

                            span.page-numbers {
                                min-width: 2rem;
                                height: 2rem;
                                padding: 0.25rem 0.375rem;
                                font-size: 0.75rem;
                            }
                        }
                    }
                }
            }

            // Dark mode support (optional)
            @media (prefers-color-scheme: dark) {
                .wcps-pagination {
                    ul.page-numbers {
                        li {
                            .page-numbers {
                                color: #e5e7eb;
                                background-color: #374151;
                                border-color: #4b5563;

                                &:hover {
                                    background-color: #4b5563;
                                    border-color: #6b7280;
                                    color: #f9fafb;
                                }

                                &.current {
                                    background-color: #3b82f6;
                                    border-color: #3b82f6;
                                    color: #ffffff;
                                }

                                &.dots {
                                    color: #9ca3af;
                                }

                                &.next,
                                &.prev {
                                    &:hover {
                                        background-color: #1e3a8a;
                                        border-color: #3b82f6;
                                        color: #93c5fd;
                                    }
                                }
                            }

                            span.page-numbers {
                                &.current {
                                    background-color: #3b82f6;
                                    color: #ffffff;
                                }

                                &.dots {
                                    color: #9ca3af;
                                }
                            }
                        }
                    }
                }
            }


        }
    }

    // Admin Tabs
    .wcps-admin-tabs {
        .wcps-tabs-nav {
            display: flex;
            background: $lighter-bg;
            margin: 0;
            padding: 0;
            list-style: none;
            border-radius: 12px 12px 0 0;

            @media (max-width: $small-tablet) {
                flex-wrap: wrap;
            }

            li {
                flex: 1;
                margin: 0;

                @media (max-width: $small-tablet) {
                    flex: 1 1 50%;
                }

                @media (max-width: $mobile) {
                    flex: 1 1 100%;
                }

                a {
                    display: block;
                    padding: 3px 10px;
                    text-decoration: none;
                    color: $text-color;
                    font-weight: 500;
                    text-align: center;
                    transition: $transition;
                    border-bottom: 2px solid transparent;
                    position: relative;
                    font-size: 12px;
                    box-shadow: none;

                    @media (max-width: $mobile) {
                        padding: 12px 16px;
                        font-size: 14px;
                    }

                    &:hover {
                        background: rgba($primary-color, 0.1);
                        color: $primary-color;
                    }

                    &.active {
                        background: $white;
                        color: $primary-color;
                        font-weight: 600;
                    }
                }
            }
        }

        .wcps-tabs-content {
            background: $white;
            border-radius: 0 0 12px 12px;

            .wcps-tab-panel {
                display: none;
                padding: 5px;

                @media (max-width: $mobile) {
                    padding: 20px;
                }

                &.active {
                    display: block;
                }

                .wcps-settings-subheading {
                    color: $dark-text;
                    font-size: 1.1rem;
                    font-weight: 600;
                    margin: 2rem 0 1rem 0;
                    padding: 12px 16px;
                    background: $light-bg;
                    border-radius: $border-radius;
                    border-left: 4px solid $primary-color;
                    cursor: pointer;
                    transition: $transition;

                    &:hover {
                        background: $light-bg;
                    }

                    &.collapsed {
                        +table {
                            display: none;
                        }

                        &::after {
                            content: ' +';
                            float: right;
                            font-weight: bold;
                        }
                    }

                    &:not(.collapsed)::after {
                        content: ' −';
                        float: right;
                        font-weight: bold;
                    }
                }
            }
        }
    }

    // Form Table Styling
    .form-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin-bottom: 1.5rem;

        tr {
            display: flex;
            flex-direction: column;
            padding: 10px 4px 16px 5px;
            background: $white;
            transition: $transition;

            @media (max-width: $mobile) {
                padding: 16px;
                margin-bottom: 1rem;
            }

            &:hover {
                border-color: rgba($primary-color, 0.3);
                box-shadow: 0 2px 8px rgba($primary-color, 0.1);
            }

            th {
                width: 100%;
                text-align: left;
                padding: 0 0 8px 0;
                font-weight: 600;
                color: $dark-text;
                font-size: 14px;
                text-transform: uppercase;
                letter-spacing: 0.5px;

                label {
                    display: block;
                    margin: 0;
                    font-size: 14px;
                }
            }

            td {
                width: 100%;
                padding: 0;

                .description {
                    margin: 8px 0 0 0;
                    font-size: 13px;
                    color: $text-color;
                    line-height: 1.4;
                }
            }
        }
    }

    // Input Styling
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    select,
    textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid $border-color;
        border-radius: $border-radius;
        font-size: 14px;
        color: $dark-text;
        background: $white;
        transition: $transition;
        box-shadow: $input-shadow;
        padding: 2px 0px 2px 10px;

        &:focus {
            outline: none;
            border-color: $primary-color;
            box-shadow: $focus-shadow;
        }

        &:disabled {
            background: $light-gray;
            color: $text-color;
            cursor: not-allowed;
        }

        &.small-text {
            width: 100px;

            @media (max-width: $mobile) {
                width: 80px;
            }
        }

        &.regular-text {
            width: 100%;
            padding: 2px 0px 2px 10px;
        }
    }

    // Checkbox and Radio Styling
    input[type="checkbox"],
    input[type="radio"] {
        width: auto;
        margin-right: 8px;
        accent-color: $primary-color;
        transform: scale(1.1);
    }

    // Select Product 
    .wcps-radio-label {
        display: inline-flex;
        align-items: center;
        position: relative;
        margin: 0 0 6px 0;
        cursor: pointer;
        width: 80%;
        padding: 12px 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px solid #dee2e6;
        border-radius: 10px;
        color: #495057;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 14px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 12px;

        // Hide the actual radio input
        input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        // Create the custom radio indicator
        &::before {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #dee2e6;
            border-radius: 50%; // Make it circular for radio button
            background-color: #fff;
            margin-right: 12px;
            flex-shrink: 0;
            transition: all 0.3s ease;
            position: relative;
        }

        // Hover effect
        &:hover {
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
            border-color: #adb5bd;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);

            &::before {
                border-color: #007bff;
                box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
            }
        }

        // Checked state - this is the key fix
        &:has(input[type="radio"]:checked) {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            border-color: #0056b3;
            color: white;
            box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);

            &::before {
                background-color: #fff;
                border-color: #fff;
                box-shadow: inset 0 0 0 5px #007bff;
            }

            &:hover {
                background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
            }
        }

        // Alternative approach using JavaScript class
        &.checked {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            border-color: #0056b3;
            color: white;
            box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);

            &::before {
                background-color: #fff;
                border-color: #fff;
                box-shadow: inset 0 0 0 5px #007bff;
            }

            &:hover {
                background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
            }
        }

        // Focus state for accessibility
        &:has(input[type="radio"]:focus) {
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }

        // Active/pressed state
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
    }

}

// Admin force layout issues fixed - ------------------------------
.wcps-container.wcps-layout-flip-layout .wcps-cta-right .wcps-cta-title h3,
.wcps-container.wcps-layout-flip-layout-2 .wcps-cta-right .wcps-cta-title h3 {
    padding: 0px !important;
}

.wcps-container.wcps-layout-flip-layout .wcps-cta-right .wcps-cta-add-to-cart,
.wcps-container.wcps-layout-flip-layout-2 .wcps-cta-right .wcps-cta-add-to-cart {
    width: auto;
    margin-left: -30px;

    a {
        padding: 10px 20px !important;
    }
}

.wcps-container.wcps-layout-flip-layout-4 .wcps-cta-right .wcps-cta-add-to-cart a {
    width: 195px !important;
    margin-left: 0px;
}

.wcps-container.wcps-layout-flip-layout,
.wcps-container.wcps-layout-flip-layout-2,
.wcps-container.wcps-layout-flip-layout-3,
.wcps-container.wcps-layout-flip-layout-4,
.wcps-container.wcps-layout-flip-layout-5 {
    width: calc(100% - 3rem);
}


.wcps-container.wcps-layout-flip-layout .wcps-cta-right,
.wcps-container.wcps-layout-flip-layout-2 .wcps-cta-right {
    padding: 0px !important;
    cursor: pointer;
}

.wcps-container.wcps-layout-category_tabs .wcps-category-tabs .wcps-tab-content .wcps-products-grid .wcps-product-item .wcps-product {
    padding: 15px !important;
}


// END ------------------------------------------------------