.fc2 {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
}

.fc2 .btn-wrap {
    max-width: 50%;
    padding-right: 10px;
    margin-bottom: 10px;
}
.fc2 .btn-wrap input:not([value=""]) + a, .fc2 .btn-wrap input:not([value=""]) + button {
    text-shadow: 1px 0 1px #000, 0 1px 1px #000, -1px 0 1px #000, 0 -1px 1px #000;
}
.fc2 .btn {
    white-space: normal;
    height: 100%;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
    padding: 13px 13px;
    max-height: 40px;
}

.fc2 .btn:hover {
    white-space: normal;
    height: 100%;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
}

#fc2-modal {
    height: 85vh;
}

#fc2-modal .flex {
    display: flex;
    flex-direction: column;
}

#fc2-modal .h100 {
    height: 100%;
}

#fc2-modal .modal-header .close {
    right: 0;
    top: 0;
    background: white;
    left: unset;
    opacity: 0.6;
}
#fc2-modal .modal-header .close:hover {
    box-shadow: initial;
    opacity: 1;
}
#fc2-modal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
}

#fc2-modal .modal-header {
    flex-shrink: 0;
}

#fc2-modal .modal-body {
    display: flex;
    position: relative;
    flex-grow: 1;
    height: calc(100% - 65px);
}

#fc2-modal .fabrics {
    text-align: center;
    white-space: nowrap;
    flex-grow: 1;
    justify-content: space-between;
    max-height: 100%;
}

#fc2-modal .fabrics .thumbs {
    flex-grow: 1;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-gap: 12px;
    grid-template-rows: repeat(auto-fill, 100px);
    overflow-x: hidden;
    overflow-y: auto;
}

#fc2-modal .product_info::-webkit-scrollbar,
#fc2-modal .fabrics .thumbs::-webkit-scrollbar {
    width: 3px;
    background: #c2c2c2;
}

#fc2-modal .product_info::-webkit-scrollbar-thumb,
#fc2-modal .fabrics .thumbs::-webkit-scrollbar-thumb {
    background-color: #fc6519;
}

#fc2-modal .fabrics .footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#fc2-modal .categories {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

#fc2-modal .categories .nav-tabs {
    margin: 0;
    padding: 0;
    border: none;
}

#fc2-modal .categories a {
    background: none;
    border: none;
    color: initial;
    text-decoration: underline;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    padding: 10px 10px;
}

#fc2-modal .categories .active > a {
    color: #de4733;
    text-decoration: none;
    pointer-events: none;
}

#fc2-modal .fabrics h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: inherit;
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

#fc2-modal .fabric-thumb {
    display: flex;
    flex: 0 0 auto;
    margin-bottom: 10px;
}

#fc2-modal .thumb-wrapper {
    position: relative;
    width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#fc2-modal .thumb {
    background-position: center center;
    position: relative;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 2px solid #c2c2c2;
    height: 100px;
    width: 100px;
    border-radius: 50%;
}

#fc2-modal .thumb-active {
    border: 4px solid #fc6519;
}



#fc2-modal .thumb .button {
    display: none;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    top: 0;
    bottom: 0;
    transition: all 0.2s;
}

#fc2-modal .thumb .button span {
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0 5px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    padding-top: 2px;
    padding-left: 1px;
}

#fc2-modal .thumb .button i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#fc2-modal .thumb:hover .button {
    display: flex;
}

#fc2-modal .btn-lg {
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 20px;
}

#fc2-modal-zoom .modal-body {
    text-align: center;
}

#fc2-modal .product_info {
    position: relative;
    height: 100%;
    text-align: center;
    display: flex;
    flex-grow: 1;
    flex-shrink: 0;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 5px;
}

#fc2-modal .product_info h2 {
    margin: 5px 0 10px;
    text-align: center;
    font-size: 18px;
    line-height: 22px;
}

#fc2-modal .product_info .price {
    /* position: absolute;
    bottom: 0;
    right: 0;
    left: 0; */
    font-size: 20px;
    line-height: 96px;
    order: 3;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#fc2-modal .product_info img {
    width: 67%;
}

#fc2-modal .option {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

#fc2-modal .option li {
    margin-bottom: 10px;
}

#fc2-modal .option .option_value {
    display: block;
    font-weight: bold;
    font-size: 13px;
    line-height: 24px;
}

#fc2-modal .product_info .option .crop {
    display: block;
    width: 100%;
    height: 45px;
    /*margin-top: 5px;*/
    border: 2px solid #000000;
    border-radius: 5px;
    overflow: hidden;
}

#fc2-modal .product_info .option li img {
    width: 100%;
    position: relative;
    top: -30px;
}

#fc2-modal-zoom img {
    width: 100%;
    border-radius: 4px;
}

/*tool tips*/
[data-toggle='tooltip-img'] {
    cursor: pointer;
}

.tooltip.fc2 img {
    width: 100%;
    border-radius: 4px;
}

.tooltip.fc2 .tooltip-inner {
    background: #fff;
}

.tooltip.fc2.in {
    opacity: 1;
}

.tooltip.fc2 .tooltip-arrow {
    border-top-color: #fff;
}

#fc2-modal .loaded {
    opacity: 0.6;
    pointer-events: none;
}

@media screen and (max-width: 991px) {
    .fc2 .btn-wrap {
        max-width: 100%;
    }
    #fc2-modal .product_info .price {
        font-size: 18px;
    }
    #fc2-modal .fabrics .thumbs {
        margin-right: -10px;
        margin-left: -10px;
    }
    #fc2-modal .fabric-thumb {
        padding-right: 10px;
        padding-left: 10px;
    }
    #fc2-modal .option li {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    #fc2-modal .categories a {
        padding: 6px 10px;
    }
}

@media screen and (max-width: 767px) {
    #fc2-modal .product_info .option .crop {
        height: 40px;
    }
    #fc2-modal .fabric-thumb {
        flex: 0 0 33%;
        max-width: 33%;
    }
}

@media screen and (max-width: 575px) {
    #fc2-modal .col-12 {
        width: 100%;
    }
    #fc2-modal {
        height: auto;
    }
    #fc2-modal .h100 {
        height: auto;
    }
    #fc2-modal .product_info {
        padding-bottom: 0;
    }
    #fc2-modal .product_info .price {
        position: static;
        line-height: 50px;
    }
    #fc2-modal .fabrics .thumbs {
        height: auto;
    }
    #fc2-modal .fabric-thumb {
        flex: 0 0 25%;
        max-width: 25%;
        /*max-height: none;*/
    }
}

@media screen and (max-width: 480px) {
    #fc2-modal .fabric-thumb {
        flex: 0 0 33%;
        max-width: 33%;
    }
}

@media screen and (max-width: 420px) {
    #fc2-modal .fabric-thumb {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

#fc2-search {
    display: table;
    width: 100%;
}

#fc2-search .input-group-btn {
    display: table-cell;
    background: #fc6519;
}

#fc2-search .input-group-btn button {
    padding: 3px 5px;
}

#fc2-search input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}


.fc2_parent .form-group.required.fc2 .btn-wrap a, .fc2_parent .form-group.required.fc2 .btn-wrap button {
    background-color: #b2b2b2;
    text-shadow: 1px 0 1px #b2b2b2, 0 1px 1px #b2b2b2, -1px 0 1px #b2b2b2, 0 -1px 1px #b2b2b2;
}
.fc2_parent .form-group.required.fc2 .btn-wrap a:hover, .fc2_parent .form-group.required.fc2 .btn-wrap button:hover {
    box-shadow:0 5px 30px -10px #fc6519;
    background-color: #fc6519;
}