.sb-image-swatches,
.sb-image-swatches-sidebar,
.sb-image-swatches-navigation,
.sb-image-swatches-order,
.sb-image-swatches-download {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.sb-swatch,
.sb-swatch-sidebar,
.sb-swatch-navigation,
.sb-swatch-order,
.sb-swatch-download {
    width: 340px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    overflow: hidden;
    transition: all .25s ease;
    cursor: pointer;
    min-height: auto;
    height: auto;
    padding: 0;
}

.sb-swatch:hover,
.sb-swatch-sidebar:hover,
.sb-swatch-navigation:hover,
.sb-swatch-order:hover,
.sb-swatch-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: #2271b1;
}

.sb-swatch.selected,
.sb-swatch-sidebar.selected,
.sb-swatch-navigation.selected,
.sb-swatch-order.selected,
.sb-swatch-download.selected,
.sb-swatch-view_order.selected {
    border: 2px solid #2271b1;
    box-shadow: 0 0 0 4px rgba(34,113,177,.15);
    position: relative;
}

.sb-swatch.selected:after,
.sb-swatch-sidebar.selected:after,
.sb-swatch-navigation.selected:after,
.sb-swatch-order.selected:after,
.sb-swatch-download.selected:after,
.sb-swatch-view_order.selected:after {
    content: "✓ Selected";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.sb-swatch img,
.sb-swatch-sidebar img,
.sb-swatch-navigation img,
.sb-swatch-order img,
.sb-swatch-download img {
    width: 100%;
    height: auto;
    min-height: auto;
    display: block;
    object-fit: cover;
}

span.wcmamtx_label_below_layout_images {
    width: 100%;
    margin: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    text-align: center;
}

.wcmamtx_layout_template_override,
.wcmamtx_layout_template_override_navigation,
.wcmamtx_layout_template_override_order,
.wcmamtx_layout_template_override_download,.wcmamtx_layout_template_override_view_order,.wcmamtx_layout_template_override_thankyou {
    margin-top: 20px !important;
    padding: 15px 18px;
    border-radius: 10px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    line-height: 1.7;
    font-size: 13px;
}

.wcmamtx_layout_template_override code,
.wcmamtx_layout_template_override_navigation code,
.wcmamtx_layout_template_override_order code,
.wcmamtx_layout_template_override_download code,
.wcmamtx_layout_template_override_view_order code,.wcmamtx_layout_template_override_thankyou code {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    word-break: break-all;
}

.wcmamtx_layout_order_select_override,
.wcmamtx_layout_download_select_override {
    margin-top: -50px;
    min-width: 280px;
}

.wcmamtx_options_table {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dcdcde;
    overflow: hidden;
}

.wcmamtx_options_table tr {
    border-bottom: 1px solid #f0f0f1;
}

.wcmamtx_options_table td:first-child {
    width: 260px;
    font-weight: 600;
}

@media (max-width: 1200px) {

    .sb-swatch,
    .sb-swatch-sidebar,
    .sb-swatch-navigation,
    .sb-swatch-order,
    .sb-swatch-download {
        width: 100%;
        max-width: 100%;
    }

    .wcmamtx_options_table td {
        display: block;
        width: 100%;
    }
}

.sb-image-swatches{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch:hover{
    border-color:#2271b1;
}

.sb-swatch.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch img {
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 180px;
    /* min-width: 200px; */
    /* padding: 2%; */
}

.wcmamtx_layout button.btn.btn-sm.btn-info.expimpbuttons  {
    display: none;
}

.sb-image-swatches-sidebar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-sidebar{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-sidebar:hover{
    border-color:#2271b1;
}

.sb-swatch-sidebar.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-sidebar img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 180px;
    /* min-width: 200px; */
    /* padding: 2%; */
}

.sb-swatch-sidebar {
    padding: 5px;
   
    min-height: 250px;
}

p.wcmamtx_layout_template_override_navigation.alert.alert-success {
    float: left;
    width: 100%;
}

.sb-swatch-navigation {
    float: left;
    /* width: 33%; */
    padding: 5px;
   
    min-height: 250px;
}



.sb-image-swatches-navigation{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-navigation {
    width: auto;
    height: 600px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all .2s ease;
}

.sb-swatch-navigation:hover{
    border-color:#2271b1;
}

.sb-swatch-navigation.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-navigation img{
    float:left;
    object-fit: fill;
    /* display: block; */
    min-height: 180px;
    /* min-width: 200px; */
    /* padding: 2%; */
    max-height: 350px;
    min-width: 400px;
}

.sb-swatch-navigation {
    padding: 5px;
    max-width: 440px;
    min-height: 350px;
    padding: 1%;
}


p.wcmamtx_layout_template_override_navigation.alert.alert-success,p.wcmamtx_layout_template_override.alert.alert-success {
    margin-top: 20px;
}

.sb-swatch {
    height: 130%;
    min-height: 190px;
}

span.wcmamtx_label_below_layout_images{
    float: left;
    font-size: 18px;
    font-weight: bold;
    
    margin-bottom: 10px;
    width:100%;
}

.sb-swatch-sidebar {
    height: 130%;
    min-height: 210px;
}

.sb-swatch-navigation {
    height: 130%;
    min-height: 270px;
}

.sb-image-swatches-order{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-order{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-order:hover{
    border-color:#2271b1;
}

.sb-swatch-order.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-order img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 280px;
    /* min-width: 200px; */
    /* padding: 2%; */
}

.sb-swatch-order {
    padding: 5px;
   
    min-height: 250px;
}
.sb-swatch-order {
    height: 130%;
    min-height: 210px;
}

p.wcmamtx_layout_template_override_order.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_order_select_override {
    float: right;
    margin-top: -50px;
    /* display: inline-block; */
}


.sb-image-swatches-download{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-download{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-download:hover{
    border-color:#2271b1;
}

.sb-swatch-download.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-download img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 140px;
    /* min-width: 200px; */
    /* padding: 2%; */
}

.sb-swatch-download {
    padding: 5px;
   
    min-height: 250px;
}
.sb-swatch-download {
    height: 130%;
    min-height: 210px;
}

p.wcmamtx_layout_template_override_download.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_download_select_override {
   float: right;
    margin-top: -50px;
    /* display: inline-block; */
}

.wcmamtx-layout-settings {
    max-width: 80%;
    margin-left: 10%;
}

.wcmamtx-setting-card{
    background:#fff;
    border:1px solid #dcdcde;
    border-radius:12px;
    margin-bottom:24px;
    overflow:hidden;
}

.wcmamtx-card-header{
    padding:20px 24px;
    background:#fafafa;
    border-bottom:1px solid #f0f0f1;
}

.wcmamtx-card-header h2{
    margin:0 0 6px;
    font-size:16px;
    font-weight:600;
}

.wcmamtx-card-header p{
    margin:0;
    color:#646970;
}

.wcmamtx-card-body{
    padding:24px;
}

.wcmamtx-template-box{
    margin:0 24px 24px;
    padding:16px;
    background:#f6f7f7;
    border-radius:8px;
    border:1px solid #dcdcde;
}

.wcmamtx-template-box code{
    display:block;
    margin-top:8px;
    padding:10px;
    background:#fff;
    border-radius:6px;
    color: black;
}

.wcmamtx-field-row{
    display:flex;
    gap:20px;
}

.wcmamtx-field{
    flex:1;
}

.wcmamtx-field label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.wcmamtx-setting-card p.alert.alert-success{
    /* padding: 20px !important; */
    width: 94%;
    margin-left: 3%;
    margin-bottom: 2%;
}

p.wcmamtx_template_override {
    display: none;
}

a.wcmamtx_template_override_a {
    font-size: 14px;
    width: 90% !important;
    color: #34626d;
    font-weight: bold;
    font-style: italic;
    margin-bottom:5px;
}

.sb-image-swatches-view_order{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-view_order{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-view_order:hover{
    border-color:#2271b1;
}

.sb-swatch-view_order.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-view_order img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 140px;
    /* min-width: 200px; */
    /* padding: 2%; */
    max-height: 270px;
}

.sb-swatch-view_order {
    padding: 5px;
   
    min-height: 250px;
}
.sb-swatch-view_order {
    height: 130%;
    min-height: 210px;
}

p.wcmamtx_layout_template_override_view_order.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_view_order_select_override {
   float: right;
    
}

.wcmamtx_layout_view_order_select_override {
    margin-top: -50px;
    min-width: 280px;
}
.wcmamtx-card-body .wcmamtx_disabled_img {
    opacity: 0.3;
}

.sb-image-swatches-thankyou{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-thankyou{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-thankyou:hover{
    border-color:#2271b1;
}

.sb-swatch-thankyou.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-thankyou img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 140px;
    /* min-width: 200px; */
    /* padding: 2%; */
    max-height: 270px;
}

.sb-swatch-thankyou {
    padding: 5px;
   
    min-height: 250px;
}
.sb-swatch-thankyou {
    min-height: 320px;
}

p.wcmamtx_layout_template_override_thankyou.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_thankyou_select_override {
   float: right;
    
}

.wcmamtx_layout_thankyou_select_override {
    margin-top: -50px;
    min-width: 280px;
}

.sb-image-swatches-linkbox{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-linkbox{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-linkbox:hover{
    border-color:#2271b1;
}

.sb-swatch-linkbox.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-linkbox img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 140px;
    /* min-width: 200px; */
    /* padding: 2%; */
    max-height: 270px;
}

.sb-swatch-linkbox {
    padding: 5px;
}
.sb-swatch-linkbox {
    min-height: 230px;
}

p.wcmamtx_layout_template_override_linkbox.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_linkbox_select_override {
   float: right;
    
}

.wcmamtx_layout_linkbox_select_override {
    margin-top: -50px;
    min-width: 280px;
}

.sb-image-swatches-profilebox{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-profilebox{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-profilebox:hover{
    border-color:#2271b1;
}

.sb-swatch-profilebox.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-profilebox img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 140px;
    /* min-width: 200px; */
    /* padding: 2%; */
    max-height: 270px;
}

.sb-swatch-profilebox {
    padding: 5px;
}
.sb-swatch-profilebox {
    min-height: 300px;
}

p.wcmamtx_layout_template_override_profilebox.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_profilebox_select_override {
   float: right;
    
}

.wcmamtx_layout_profilebox_select_override {
    margin-top: -50px;
    min-width: 280px;
}

.sb-image-swatches-orderpay{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.sb-swatch-orderpay{
    width:330px;
    height:140px;
    border:2px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    overflow:hidden;
    transition:all .2s ease;
}

.sb-swatch-orderpay:hover{
    border-color:#2271b1;
}

.sb-swatch-orderpay.selected{
    border-color:#2271b1;
    box-shadow:0 0 0 2px rgba(34,113,177,.15);
}

.sb-swatch-orderpay img{
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    /* display: block; */
    min-height: 140px;
    /* min-width: 200px; */
    /* padding: 2%; */
    max-height: 270px;
}

.sb-swatch-orderpay {
    padding: 5px;
}
.sb-swatch-orderpay {
    min-height: 320px;
}

p.wcmamtx_layout_template_override_orderpay.alert.alert-success {
    margin-top: 20px;
}

select.wcmamtx_layout_orderpay_select_override {
   float: right;
    
}

.wcmamtx_layout_orderpay_select_override {
    margin-top: -50px;
    min-width: 280px;
}

.wcmamtx_layout_template_override_orderpay {
    margin-top: 20px !important;
    padding: 15px 18px;
    border-radius: 10px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    line-height: 1.7;
    font-size: 13px;
}

.wcmamtx_layout_template_override_orderpay  code{
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    word-break: break-all;
}


.wcmamtx-card-body label {
    float: left;
    min-width: 30%;
}

.wcmamtx-card-body input {
    /* float: left; */
    min-width: 30%;
}

.wcmamtx_frontend_link_top_sticky {
     position: sticky;
  top: 20;
  background-color: green;
  border: 2px solid #4CAF50;
}

/* ============================================================
   wcmamtx_frontend_link_top_sticky — Sticky Frontend button
   ============================================================ */

a.wcmamtx_frontend_link_top_sticky {
    position: fixed;
    top: 52px;           /* clears WP admin bar (32px) + a little breathing room */
    right: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;

    margin-top: 60px;
    float: right;
}

a.wcmamtx_frontend_link_top_sticky:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,0.26);
    transform: translateY(-1px);
}

a.wcmamtx_frontend_link_top_sticky:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

a.wcmamtx_frontend_link_top_sticky .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    margin: 0;
}

/* When WP admin bar is hidden (e.g. mobile or logged-out preview) */
@media screen and (max-width: 782px) {
    a.wcmamtx_frontend_link_top_sticky {
        top: 46px;
        right: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
}
.wcmamtx_submit_section_div.wcmamtx_layout a#wcmamtx_frontend_link {
    display:none !important;
}

/* ============================================================
   Sticky Save Changes button on Layout tab
   ============================================================ */

input.wcmamtx_submit_button.wcmamtx_layout {
    position: fixed;
    top: 170px;
    right: -30px;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}

input.wcmamtx_submit_button.wcmamtx_layout:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
    top: 170px;
}

input.wcmamtx_submit_button.wcmamtx_layout:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    top: 170px;
}

@media screen and (max-width: 782px) {
    input.wcmamtx_submit_button.wcmamtx_layout {
        top: 170px;
        padding: 7px 16px;
        font-size: 12px;
    }
}




.wcmamtx_layout_tabs{
    display:flex;
    gap:30px;
    margin:auto;
}

.wcmamtx_layout_tabs .tabs-sidebar{
    width:280px;
    background:#fff;
    padding:20px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.wcmamtx_layout_tabs .wcmamtx_tab_link{
    width:100%;
    display:flex;
    align-items:center;
    gap:14px;
    border:none;
    background:transparent;
    padding:16px 20px;
    border-radius:14px;
    cursor:pointer;
    margin-bottom:10px;
    font-size:15px;
    font-weight:600;
    color:#555;
    transition:.3s;
    position:relative;
}

.wcmamtx_layout_tabs .wcmamtx_tab_link:hover{
    background:#f5f7ff;
    color:#4f46e5;
    transform:translateX(5px);
}

.wcmamtx_layout_tabs .wcmamtx_tab_link.active{
    background:linear-gradient(
        135deg,
        #6366f1,
        #8b5cf6
    );
    color:#fff;
    box-shadow:
        0 10px 25px rgba(99,102,241,.35);
}

.wcmamtx_layout_tabs .wcmamtx_tab_link.active::before{
    content:'';
    position:absolute;
    left:-20px;
    top:50%;
    transform:translateY(-50%);
    width:5px;
    height:50%;
    border-radius:10px;
    background:#6366f1;
}

.wcmamtx_layout_tabs .icon{
    font-size:18px;
}

.wcmamtx_layout_tabs .tabs-content{
    flex:1;
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    max-width: 70% !important;
}

.wcmamtx_layout_tabs .tab-pane{
    display:none;
    animation:fadeIn .4s ease;
}

.wcmamtx_layout_tabs .tab-pane.active{
    display:block;
}

.wcmamtx_layout_tabs @keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:768px){

    .wcmamtx_layout_tabs{
        flex-direction:column;
    }

    .wcmamtx_layout_tabs .tabs-sidebar{
        width:100%;
    }

}

.wcmamtx_layout_tabs .tab-pane{
    display:none;
    opacity:0;
    transform:translateY(10px);
    transition:all .3s ease;
}

.wcmamtx_layout_tabs .tab-pane.active{
    display:block;
    opacity:1;
    transform:translateY(0);
}
p.wcmamtx_layout_template_override_navigation_react.alert.alert-success {
    margin-left:0px !important;
}

div#astra-sites-on-active {
    display: none;
}

div#astra-optin-notice {
    display: none;
}

a.btn.wcmamtx_docs_buton.btn-success {
    display: none;
}

.wcmamtx_layout button.wcmamtx-action-btn.wcmamtx-action-btn--info.expimpbuttons {
    display: none;
}

.wcmamtx_layout a.wcmamtx-action-btn.wcmamtx-action-btn--primary.wcmamtx_frontend_link {
    display: none;
}