/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
:root {
	--primary: #15395A;
	--hover: #1f507d;
	--lightgrey: #F0F2F5;
	--accent: #E3D2AF;
	--textcolor: #1B1D1F;
	
	--font: 'Gilroy', Helvetica, Arial, sans-serif;
}
#colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9990;
    overflow: auto;
    -webkit-transform: translate3d(0, 0, 0);
}

#cboxWrapper {
    max-width: none;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(134, 134, 134, 0.8);
}

#cboxMiddleLeft,
#cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
}

#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#cboxLoadedContent.zoom {
    cursor: url(/assets/templates/img/zoom_cursor.gif), move;
}

#cboxTitle {
    margin: 0;
}

#cboxLoadingOverlay,
#cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
    cursor: pointer;
}

.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: 100%;
    max-height: 100%;
    -ms-interpolation-mode: bicubic;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}

#colorbox,
#cboxContent,
#cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

/* 
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#colorbox {
    outline: 0;
}

#cboxTopLeft {
    width: 25px;
    /* height: 25px; */
    /*background:url(images/border1.png) no-repeat 0 0;*/
}

#cboxTopCenter {
    /* height: 25px; */
    /*background:url(images/border1.png) repeat-x 0 -50px;*/
}

#cboxTopRight {
    width: 25px;
    /* height: 25px; */
    /*background:url(images/border1.png) no-repeat -25px 0;*/
}

#cboxBottomLeft {
    width: 25px;
    /* height: 25px; */
    /*background:url(images/border1.png) no-repeat 0 -25px;*/
}

#cboxBottomCenter {
    /* height: 25px; */
    /*background:url(images/border1.png) repeat-x 0 -75px;*/
}

#cboxBottomRight {
    /* width: 25px;
    height: 25px; */
    /*background:url(images/border1.png) no-repeat -25px -25px;*/
}

#cboxMiddleLeft {
    /* width: 25px; */
    /*background:url(images/border2.png) repeat-y 0 0;*/
}

#cboxMiddleRight {
    /* width: 25px; */
    /*background:url(images/border2.png) repeat-y -25px 0;*/
}

#cboxContent {
    margin-top: 0;
    overflow: visible;
    background: 0 0;
}

.cboxIframe {
    background: #fff;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxLoadedContent {
    background-color: 0 0;
    padding: 1px;
}

#cboxTitle {
    position: absolute;
    top: 10px;
    left: 30px;
    right: 50px;
    font: bold 26px/32px Calibri, Tahoma, sans-serif;
}

#cboxCurrent {
    position: absolute;
    bottom: 0px;
    left: 100px;
    color: #999;
    text-indent: -9999px;
}

/*#cboxLoadingOverlay{background:#fff url(images/loading.gif) no-repeat 5px 5px;}*/

/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
#cboxPrevious,
#cboxNext,
#cboxSlideshow,
#cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
}

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active,
#cboxNext:active,
#cboxSlideshow:active,
#cboxClose:active {
    outline: 0;
}

#cboxSlideshow {
    position: absolute;
    bottom: 0px;
    right: 42px;
    color: #444;
}

#cboxPrevious,
#cboxNext {
    display: block;
    width: 76px;
    height: 76px;
    margin-top: -38px;
    position: absolute;
    top: 50%;
    text-indent: -9999px;
    border-radius: 38px;
    background: var(--lightgrey);
    outline: none;
	transform: scale(50%,50%);
}

#cboxPrevious:hover,
#cboxNext:hover {
    background-color: var(--primary);
}

#cboxPrevious {
    left: 0px;
}

#cboxNext {
    right: 0px;
}

#cboxPrevious:before,
#cboxNext:before {
    content: "";
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    position: absolute;
    top: 13px;
}

#cboxPrevious:before {
    border-right: 27px solid var(--primary);
    left: 19px;
}

#cboxNext:before {
    border-left: 27px solid var(--primary);
    right: 19px;
}

#cboxPrevious:hover:before {
    border-right-color: #fff;
}

#cboxNext:hover:before {
    border-left-color: #fff;
}

#cboxClose {
    display: block;
    width: 27px;
    height: 27px;
    position: absolute;
    top: 35px;
    right: 10px;
    text-indent: -9999px;
    outline: none;
}
@media (width < 768px) {
	#cboxClose {
		top:17px;
	}
}
#cboxClose:before {
    content: "\00D7";
    position: absolute;
    right: 0;
    top: 0;
    text-indent: 0;
    font: 38px/20px Verdana, sans-serif;
    color: var(--primary);
    text-decoration: none;
}

#cboxClose:hover::before {
    color: var(--hover);
}

/*
  The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
  when an alpha filter (opacity change) is set on the element or ancestor element.  This style is not applied to or needed in IE9.
  See: http://jacklmoore.com/notes/ie-transparency-problems/
*/
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF, endColorstr=#00FFFFFF);
}

/* Prod gall */
.product-gall-colorbox {}

.product-gall-colorbox #cboxContent {
    padding: 120px 350px 10px 100px;
}

.product-gall-colorbox #cboxTitle {
    padding-right: 450px;
}

.product-gall-colorbox #cboxNext {
    right: 265px;
}

.product-gall-colorbox .to-basket {
    float: right;
}

.gall-one-img #cboxContent {
    padding: 120px 20px 10px;
}

.gal-prod-title {
    font-weight: bold;
    font-size: 26px;
    line-height: 32px;
    color: #000;
}

.gal-prod-buy {
    width: 180px;
    padding: 40px 0 0;
    position: absolute;
    top: 0;
    right: 0;
}

.gal-prod-buy .buy-btn,
.gal-prod-buy .not-available-btn {
    margin-right: 3px;
    float: right;
}

.gal-prod-buy .form-group {
    padding-top: 0;
}

.gal-prod-buy .taste-form-group .control-label {
    line-height: 36px;
}

.gal-prod-buy .tastes-container {
    top: 0;
    left: 0;
    right: 0;
}

.gal-prod-buy .taste-form-group .form-control {
    width: 225px;
    height: 36px;
    padding-left: 7px;
    padding-right: 15px;
    border-radius: 10px;
    border-color: #000;
}

.gal-prod-price {
    position: absolute;
    top: 40px;
    right: 180px;
    font-weight: 500;
    font-style: italic;
    font-size: 50px;
    line-height: 60px;
    font-family: Roboto;
    color: #3a3a3a;
}

.gal-prod-price .rur-currency {
    font-size: 40px;
    color: #3a3a3a;
}

.gal-prod-price .rur-currency:after {
    height: 2px;
    bottom: 18px;
    left: -2px;
    background: #3a3a3a;
}

.gal-prod-thumbs-container {
    position: absolute !important;
    top: 150px;
    right: 40px;
    bottom: 50px;
    overflow: hidden;
    overflow-y: auto;
    padding-right: 20px;
}

.gal-prod-thumbs {
    width: 141px;
    overflow: visible;
    box-sizing: border-box;
}

.gal-prod-thumb {
    margin: 10px 0 0;
    box-sizing: border-box;
}

.gal-prod-thumb:first-child {
    margin: 0;
}

.gal-prod-thumb a {
    display: block;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 50%;
    overflow: hidden;

    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
}

.gal-prod-thumb.current a {
    border-color: #000;
}

.gal-prod-thumb img {
    height: 100px;
}