#product_pictures,
#gpsr_pictures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 15px;
}

#product_pictures .top-left{
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

#product_pictures .product_picture,
#gpsr_pictures .product_picture{
    height: auto;
    border: none;
    width: 100%;
    margin-right: 0;
    min-width: 0;
}

#product_pictures .product_picture .inner-wrapper,
#gpsr_pictures .product_picture .inner-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    background: #fff;
    border: 1px solid rgb(210, 210, 210);
    border-radius: 3px;
    box-shadow: none;
    cursor: -webkit-grab;
    cursor: grab;
    position: relative;
}

#product_pictures .product_picture .inner-wrapper.selected {
    border: 1px solid red !important;
}

#product_pictures .product_picture .inner-wrapper:focus,
#gpsr_pictures .product_picture .inner-wrapper:focus {
    cursor: move;
}

#product_pictures .product_picture .inner-wrapper .picture-item,
#gpsr_pictures .product_picture .inner-wrapper .picture-item {
    height: auto;
    line-height: 1;
    border-bottom: 1px solid #ccc;
    position: relative;
    overflow: hidden;
}

#product_pictures .product_picture .inner-wrapper .picture-item.selected,
#gpsr_pictures .product_picture .inner-wrapper .picture-item.selected {
    opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
}

#product_pictures .product_picture .picture-item img,
#gpsr_pictures .product_picture .picture-item img {
    max-width: 100%;
    border: none;
    width: auto;
    max-height: 100%;
    padding: 0;
}

#product_pictures .container-picture-actions,
#gpsr_pictures .container-picture-actions{
    align-items: baseline;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 10px;
    margin: 5px 0;
}

#product_pictures .product_picture .attribute-select-wrapper,
#gpsr_pictures .product_picture .attribute-select-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

#product_pictures .product_picture .inner-wrapper  .picture-store-dropdown,
#gpsr_pictures .product_picture .inner-wrapper  .picture-store-dropdown {
    width: 100%;
    padding: 0 15px;
}

#product_pictures .product_picture .inner-wrapper  .picture-store-dropdown .select-store-trigger,
#gpsr_pictures .product_picture .inner-wrapper  .picture-store-dropdown .select-store-trigger  {
    margin-bottom: 15px;
    width: 100%;
}

#product_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu,
#gpsr_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% - 15px);
    background: #fff;
    border-radius: 3px;
    border: 1px solid #ccc;
    width: calc(100% - 30px);
    margin: 0 15px;
}

#product_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu li:first-of-type,
#gpsr_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu li:first-of-type {
    border-top: none;
}

#product_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu li,
#gpsr_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#product_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu li label,
#gpsr_pictures .product_picture .inner-wrapper  .picture-store-dropdown .dropdown-menu li label  {
    padding: 10px 10px 5px;
}

#product_pictures .inner-wrapper.new-picture,
#gpsr_pictures .inner-wrapper.new-picture {
    border: 1px solid rgb(207, 207, 207);
    background: #eee;
    padding: 10px;
    transition: background 250ms linear;
    min-height: 318px;
    border-radius: 3px;
    height: 100%;
}

#product_pictures .inner-wrapper.new-picture > div,
#gpsr_pictures .inner-wrapper.new-picture > div {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

#product_pictures .inner-wrapper.new-picture ul,
#gpsr_pictures .inner-wrapper.new-picture ul{
    text-align: left;
}

#product_pictures .inner-wrapper.new-picture:hover,
#gpsr_pictures .inner-wrapper.new-picture:hover {
    background: #e0e0e0;
}

#product_pictures .inner-wrapper.new-picture .fileUpload.btn,
#gpsr_pictures .inner-wrapper.new-picture .fileUpload.btn {
    height: 194px;
    width: 194px;
    margin: 0;
    border-radius: 3px;
    position: relative;
    background: none;
    border: none;
    /* transform: translateY(25%); */
}

#product_pictures .inner-wrapper.new-picture .fileUpload.btn input,
#gpsr_pictures .inner-wrapper.new-picture .fileUpload.btn input {
    display: block;
    height: 100%;
    width: 100%;
}

#product_pictures .inner-wrapper.new-picture .fileUpload.btn span,
#gpsr_pictures .inner-wrapper.new-picture .fileUpload.btn span  {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    font-size: 16px;
}

#product_pictures .inner-wrapper.new-picture .fileUpload.btn i,
#gpsr_pictures .inner-wrapper.new-picture .fileUpload.btn i {
    font-size: 90px;
    color: #ccc;
    transition: all 250ms linear;
}

#product_pictures .inner-wrapper.new-picture:hover .fileUpload.btn i,
#gpsr_pictures .inner-wrapper.new-picture:hover .fileUpload.btn i {
    color: #999;
}

#product_pictures .product_picture .inner-wrapper .btn-danger {
    margin: 10px;
}

#product_pictures .switch,
#gpsr_pictures .switch {
    position: relative;
    display: inline-block;
    width: 53px;
    height: 25px;
    margin-right: 10px;
}

#product_pictures .toggle-button,
#gpsr_pictures .toggle-button-gpsr {
    display:none;
}

#product_pictures .button-cover,
#gpsr_pictures .button-cover {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: red;
    transition: .4s;
    border-radius: 34px;
}

#product_pictures .toggle-button:checked + .button-cover,
#gpsr_pictures .toggle-button-gpsr:checked + .button-cover {
    background-color: green;
}

#product_pictures .toggle-button:focus + .button-cover,
#gpsr_pictures .toggle-button-gpsr:focus + .button-cover {
    box-shadow: 0 0 1px #2196F3;
}

#product_pictures .button-cover:before,
#gpsr_pictures .button-cover:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    top: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#product_pictures .toggle-button:checked + .button-cover:before,
#gpsr_pictures .toggle-button-gpsr:checked + .button-cover:before {
    transform: translateX(30px);
}

/* Add the following styles for the ON/OFF text */
#product_pictures .button-label-on, .button-label-off,
#gpsr_pictures .button-label-on, .button-label-off {
    position: absolute;
    color: white;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}

#product_pictures .button-label-on,
#gpsr_pictures .button-label-on {
    left: 8px;
}

#product_pictures .button-label-off,
#gpsr_pictures .button-label-off {
    right: 2px;
    width: 30px;
}

#product_pictures .toggle-button:checked + .button-cover .button-label-off,
#gpsr_pictures .toggle-button-gpsr:checked + .button-cover .button-label-off {
    display: none;
}

#product_pictures .toggle-button:checked + .button-cover .button-label-on,
#gpsr_pictures .toggle-button-gpsr:checked + .button-cover .button-label-on {
    display: block;
}

#product_pictures .toggle-button:not(:checked) + .button-cover .button-label-off,
#gpsr_pictures .toggle-button-gpsr:not(:checked) + .button-cover .button-label-off {
    display: block;
}

#product_pictures .toggle-button:not(:checked) + .button-cover .button-label-on,
#gpsr_pictures .toggle-button-gpsr:not(:checked) + .button-cover .button-label-on {
    display: none;
}

#product_pictures .container-picture-actions .top-left input[type="checkbox"],
#gpsr_pictures .container-picture-actions .top-left input[type="checkbox"] {
    height: 15px;
    width: 15px;
    margin-left: 5px;
}

@media screen and (max-width: 768px) {
    #product_pictures,
    #gpsr_pictures {

        grid-template-columns: 1fr;
    }

    .product_tabs_wrapper #tabs > .col-sm-9 {
        padding-right: 0;
    }
}