.custom_shop_options{
    columns: 2;
    column-gap: 22px;
    padding: 22px 0;
    padding-right: 20px;
    padding-left: 2px;
}
.custom_shop_options label{
    min-width: 100px;
    display: inline-block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    cursor: auto;
}
.custom_shop_options .widget label + span {
    display: inline-block;
    width: min-content;
}

.custom_shop_options .widget label + span input ~ input {
    margin-top: 10px;
}
.custom_shop_options .widget{
    margin-bottom: 25px;
    height: auto;
    padding: 25px 30px;
    background-color: white;
    break-inside: avoid-column;
    border-radius: 8px;
}

.custom_shop_options input[name="save_options"]{
    border-radius: 0;
    padding: 0 10px;
    min-height: 36px;
    color: white;
    background-color: #2271b1;
    display: inline-block;
    font-size: 16px;
    border-radius: 3px;
    border: 1px solid #2271b1;
    min-width: 120px;
    cursor: pointer;
}
.custom_shop_options input[name="save_options"]:hover{
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.custom_shop_options span.delete{
    margin-left: 30px;
    cursor: pointer;
    width: 23px;
    height: 23px;
    background: url('../images/admin-delete.svg') no-repeat center;
    background-size: 80%;
    text-indent: -9999px;
    display: inline-block;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
}
.custom_shop_options .widget h2{
    font-size: 20px;
}
.custom_shop_options .widget>p{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px rgba(0, 0, 0, 0.1) dashed;
    padding-bottom: 1rem;
}
.custom_shop_options .widget input[type="text"],.custom_shop_options .widget input[type="email"]{
    min-width: 400px;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    border-radius: 3px;
    color: #656567;
}
.custom_shop_options .widget textarea{
    min-width: 400px;
    min-height: 200px;
    border: 1px solid #e6e6e6;
    color: #656567;
}
.custom_shop_options .widget select{
    color: #656567;
}
ul.ui-sortable li.ui-sortable-handle{
    padding: 8px 15px;
    border: 1px solid #e6e6e6;
    cursor: move;
    background: url('../images/order-sortable.svg') no-repeat;
    background-position: 98% center;
    background-size: 18px;
    font-size: 15px;
    color: #656567;
}
.custom_shop_options button.button{
    padding: 8px 50px;
    font-size: 13px;
    border: 1px solid #2271b1;
    background-color: #2271b1;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    border-radius: 3px;
    box-sizing: border-box;
    background: #f6f7f7;
    color: #2271b1;
}
.custom_shop_options button.button:hover{
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}
.custom_shop_options ul.container li{
    padding: 5px 15px ;
    border: 1px solid #e6e6e6;
    line-height: 28px;
    position: relative;
}
.custom_shop_options ul.container li span.delete{
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

#poststuff .widget h2{
    font-size: 19px;
    padding-left: 0;
}
#poststuff div.widget{
    display: flex;
    flex-flow: wrap;
    align-items: center;
    padding: 20px;
    border: 1px solid #e8e8e8;
    break-inside: avoid-column;
    position: relative;
    border-radius: 3px;
}
#poststuff div.widget h3{
    padding: 0 !important;
    margin-bottom: 20px;
    width: 100%;
}
#poststuff div.widget input[type="text"]{
    border: 1px solid #e6e6e6;
    display: block;
    margin-right: 15px;
    max-width: 500px;
}
#poststuff div.widget td input[type="text"]{
    width: auto;
    margin-bottom: 0;
}
#poststuff div.widget ul.documents{
    width: 50%;
}
#poststuff .widget .inside{
    padding: 15px;
}
#poststuff .widget button.button{
    border: none;
    border-radius: 3px;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
    background-color: #007cba;
    display: inline-block;
    min-height: 30px;
}
#poststuff .widget button.button:hover{
    background-color: #2271b1;
    color: #fff;
}
#poststuff .widget .ptop{
    position: absolute;
    top: 15px;
    right: 15px;
}
#poststuff .widget .img_preview{
    position: relative;
}
#poststuff .widget.post_swiper_slides{
    display: block;
    padding: 0;
    border: none;
    background: transparent;
}
#poststuff .widget.post_swiper_slides .post_swiper_panel{
    display: grid;
    gap: 20px;
}
#poststuff .widget.post_swiper_slides .post_swiper_fields,
#poststuff .widget.post_swiper_slides .slides_section{
    padding: 20px 22px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
#poststuff .widget.post_swiper_slides .field_row{
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
#poststuff .widget.post_swiper_slides .field_row:last-of-type{
    margin-bottom: 0;
}
#poststuff .widget.post_swiper_slides .field_label,
#poststuff .widget.post_swiper_slides .slide_field_label,
#poststuff .widget.post_swiper_slides .shortcode_label{
    display: inline;
    white-space: nowrap;
}
#poststuff .widget.post_swiper_slides .field_row input[type="text"],
#poststuff .widget.post_swiper_slides .field_row textarea,
#poststuff .widget.post_swiper_slides .slide_fields input,
#poststuff .widget.post_swiper_slides .slide_fields textarea{
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
#poststuff .widget.post_swiper_slides .field_row input:focus,
#poststuff .widget.post_swiper_slides .field_row textarea:focus,
#poststuff .widget.post_swiper_slides .slide_fields input:focus,
#poststuff .widget.post_swiper_slides .slide_fields textarea:focus{
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}
#poststuff .widget.post_swiper_slides .shortcode_label{
    display: inline;
    white-space: nowrap;
}
#poststuff .widget.post_swiper_slides .shortcode_hint{
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f6f7f7;
    border: 1px dashed #c3c4c7;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    min-height: auto;
    line-height: 1.4;
    color: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
#poststuff .widget.post_swiper_slides .shortcode_hint:hover,
#poststuff .widget.post_swiper_slides .shortcode_hint:focus{
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}
#poststuff .widget.post_swiper_slides .shortcode_hint.is_copied{
    border-color: #00a32a;
    background: #edfaef;
    box-shadow: 0 0 0 1px #00a32a;
}
#poststuff .widget.post_swiper_slides .shortcode_value{
    padding: 6px 12px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #dcdcde;
    font-size: 13px;
    user-select: all;
}
#poststuff .widget.post_swiper_slides .shortcode_action{
    font-size: 12px;
    color: #646970;
}
#poststuff .widget.post_swiper_slides .shortcode_status{
    min-width: 52px;
    font-size: 12px;
    font-weight: 600;
    color: #00a32a;
    text-align: right;
}
#poststuff .widget.post_swiper_slides .slides_head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
#poststuff .widget.post_swiper_slides .slides_title{
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}
#poststuff .widget.post_swiper_slides .slides_count{
    font-size: 12px;
    color: #646970;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f0f1;
}
#poststuff .widget.post_swiper_slides .slides_empty{
    margin-bottom: 14px;
    padding: 18px;
    text-align: center;
    color: #646970;
    border: 1px dashed #c3c4c7;
    border-radius: 6px;
    background: #fafafa;
}
#poststuff .widget.post_swiper_slides ul.slides{
    display: grid;
    gap: 14px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    /* max-height: 70vh; */
    overflow: auto;
}
#poststuff .widget.post_swiper_slides .slide_item{
    display: grid;
    grid-template-columns: 34px 160px minmax(0, 1fr) 34px;
    gap: 16px;
    align-items: start;
    padding: 16px;
    margin: 0;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fcfcfc;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}
#poststuff .widget.post_swiper_slides .slide_item.ui-sortable-helper{
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
#poststuff .widget.post_swiper_slides .slide_handle{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 6px;
    background: #f0f0f1 url('../images/order-sortable.svg') no-repeat center;
    background-size: 16px;
    cursor: move;
}
#poststuff .widget.post_swiper_slides .slide_index{
    font-size: 11px;
    font-weight: 700;
    color: #646970;
}
#poststuff .widget.post_swiper_slides .slide_image_preview{
    display: grid;
    gap: 10px;
}
#poststuff .widget.post_swiper_slides .slide_image_box{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 8px;
    border: 1px dashed #c3c4c7;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
#poststuff .widget.post_swiper_slides .slide_item.has_image .slide_image_box{
    border-style: solid;
}
#poststuff .widget.post_swiper_slides .slide_image_box img{
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}
#poststuff .widget.post_swiper_slides .slide_image_actions{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
#poststuff .widget.post_swiper_slides .slide_image_actions .button-small{
    min-height: 28px;
    line-height: 26px;
    padding: 0 10px;
}
#poststuff .widget.post_swiper_slides .slide_image_actions .button-link{
    padding: 0;
    min-height: auto;
    color: #b32d2e;
}
#poststuff .widget.post_swiper_slides .slide_fields{
    display: grid;
    gap: 12px;
}
#poststuff .widget.post_swiper_slides .slide_field{
    display: grid;
    gap: 6px;
}
#poststuff .widget.post_swiper_slides .slide_delete{
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff url('../images/admin-delete.svg') no-repeat center;
    background-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
#poststuff .widget.post_swiper_slides .slide_delete:hover{
    background-color: #fcf0f1;
    border-color: #d63638;
}
#poststuff .widget.post_swiper_slides .slides_footer{
    display: flex;
    justify-content: flex-start;
}
#poststuff .widget.post_swiper_slides .slides_footer .button-primary{
    min-height: 34px;
    padding: 0 16px;
}
@media (max-width: 960px){
    #poststuff .widget.post_swiper_slides .slide_item{
        grid-template-columns: 34px 1fr 34px;
    }
    #poststuff .widget.post_swiper_slides .slide_image_preview{
        grid-column: 2 / 3;
    }
    #poststuff .widget.post_swiper_slides .slide_fields{
        grid-column: 1 / -1;
    }
}
#poststuff .widget .img_preview span.delete{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: url('../images/admin-delete-white.svg') no-repeat center;
    background-size: 20px;
    text-indent: -9999px;
    background-color: #007cba;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}
#poststuff .img_preview:hover span.delete{
    opacity: 0.6;
}
#poststuff .widget p{
    width: 100%;
    display: flex;
    align-items: center;
}
#poststuff .widget p label{
    min-width: 150px;
}
#poststuff .widget textarea{
    min-width: 400px;
    min-height: 100px;
    border-color: #e6e6e6;
}
#poststuff .widget p.img_preview{
    width: auto;
}
#poststuff .widget p.img_preview:after{
    content: "";
    display: block;
}
.edit-post-meta-boxes-area #poststuff .widget h3{
    margin-bottom: 15px;
    padding-left: 3px;
}
#poststuff .widget .terms_list li{
    padding: 7px;
    border: 1px solid #e8e8e8;
    line-height: 22px;
    padding-left: 20px;
    padding-right: 20px;
    min-width: 500px;
    max-width: 500px;
    position: relative;
}
#poststuff .widget span.delete{
    color: #cc1818;
    cursor: pointer;
}
#poststuff .widget .terms_list li span.delete{
    margin-left: 30px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: url('../images/admin-delete.svg') no-repeat center;
    background-size: 72%;
    text-indent: -9999px;
    display: inline-block;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}
#poststuff .widget .terms_list li span.delete:hover{
    background-color: #f6f7f7;
}
#poststuff .widget .prev{
    margin-bottom: 15px;
}
#poststuff .widget .searchbox{
    width: 100%;
}


/* 
    ptop              (button,input)
    terms_list     (ul)
    img_preview      (li)
*/

#poststuff .widget ul.gallery{
    display: flex;
    gap: 25px;
}
.gap2{
    gap: 2rem;
}
.flex-end{
    align-items: flex-end !important;
}