/************************************************
Thumbnails
*************************************************/
#tg-itemTmp {
  display: none;
}

.thumbsWrap {
  margin: 0 0 0 402px;
  clear:none;
  padding-top:0;
  position:relative;
}
.thumbsWrap .arrow {
  position: absolute;
  width: 30px;
  height: 101px;
  top: 0;
  z-index: 10;
}
.thumbsWrap .arrow a {
  background: url('https://ir.ebaystatic.com/rs/v/nrzkkzqriy4mtno1tk5ziida5ix.png') no-repeat 0 0;
  display: inline-block;
  width: 20px;
  height: 40px;
  position: relative;
  top: 32px;
}
.thumbsWrap .arrow.lt a {
  background-position: 3px -23px;
}
.thumbsWrap .arrow.rt a {
  background-position: -95px -23px;
  left: 12px;
}
.thumbsWrap .arrow.lt a.disabled {
  background-position: -37px -23px;
  outline: 0;
  cursor: default;
}
.thumbsWrap .arrow.rt a.disabled {
  background-position: -55px -23px;
  outline: 0;
  cursor: default;
}
.thumbsWrap .arrow.lt a:hover.disabled {
  background-position: -37px -23px;
  outline: 0;
  cursor: default;
}
.thumbsWrap .arrow.rt a:hover.disabled {
  background-position: -55px -23px;
  outline: 0;
  cursor: default;
}
.thumbsWrap .arrow.lt a:hover {
  background-position: -17px -23px;
}
.thumbsWrap .arrow.rt a:hover {
  background-position: -75px -23px;
}
.thumbsWrap .arrow.lt {
  left: -29px;
}
.thumbsWrap .arrow.rt {
  right: -26px;
}
#tg-thumbsMask {
    position: relative;
    display: block !important;
    max-height: 424px;
    overflow: hidden;
    position: relative;
    max-width: 336px;
    background: #fff;
}

#tg-thumbsMask ul{
	transition:margin-top 0.75s ease 0s;
	
}

.thumbsWrap .tg-li {
  display: inline-block;
  width: 100%;
  height: 100%;
  position: relative;
}
#tg-mainPicPnl {
  position: relative;
  display: inline-block;
  background-color: #848484;
  color: #fff;
  text-align: center;
}

#tg-thumbs {
  list-style: none;
  position: relative;
  padding: 0;
  margin: 0;
  vertical-align: top;
  left: 0;
}

#tg-thumbs li {
    height: 106px;
    width: 112px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-width: 0 1px 1px 0;
    vertical-align: middle;
    background:#fff;
}
#tg-thumbs .curr {
	border:2px solid #3798c6
}

#tg-thumbs li .thumb {
  height: 106px;
  width: 111px;
}
#tg-thumbs .curr .thumb {
	height:102px;
	width:108px;
}
#tg-thumbs li .picIcon {
  position: relative;
  top: 34px;
  margin: auto;
  z-index: 0;
  background: url('https://ir.ebaystatic.com/rs/v/nrzkkzqriy4mtno1tk5ziida5ix.png') no-repeat -87px -63px;
  width: 47px;
  height: 36px;
}

/*
#tg-thumbs li:nth-last-child(-n+3){
  border-bottom: none;
}
*/

#tg-thumbs li.last {
  /*border-right: 1px solid #d2d2d2;*/
}

#tg-thumbs li .tg-mainPicPnl {
  display: none;
}
#tg-thumbs li:not([data=""]):first-child .tg-mainPicPnl {
  content: "Main Photo";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  width: 100%;
  font-size: 0.6rem;
  padding: 5px;
  background: rgba(0,0,0,.1);
  box-sizing: border-box;
}

#tg-thumbs li .thumb {
  background: #fff;
  margin: 0;
  padding: 0;
  display: none;
  position: relative;
  text-align: center;
  vertical-align: middle;
  cursor: move;
}


/** TODO: Removed sortable
#tg-thumbs div:hover.thumb {
cursor: move;
}
**/

#tg-thumbs li .thumb img {
  border: 0;
  position: relative;
  margin: 0;
  vertical-align: middle;
}
#tg-thumbs li .thumb img.dim {
  max-width: 90px;
  max-height: 67px;
  display: inline-block;
  width: auto;
  height: auto;
}

#tg-thumbs li .thumb i {
  display: inline-block;
  height: 100%;
  width: 0;
  vertical-align: middle;
}

#tg-thumbs li:not([data=""]):hover .thumbActBar {
  background-color: rgba(0,0,0,0.1);
  display: block;
  height: 18px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

#tg-thumbs li .disableLyr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 20;
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
  display: none;
}
#tg-thumbs .guide {
  position: absolute;
  bottom: 14px;
  right: 4px;
  text-align: right;
  z-index: 1;
}
#tg-thumbs .guide a {
  display: inline-block;
  height: 27px;
  width: 27px;
  margin-left: 3px;
  cursor: pointer;
  background: url('https://ir.ebaystatic.com/rs/v/nrzkkzqriy4mtno1tk5ziida5ix.png') no-repeat 0 0;
}
#tg-thumbs .guide .warn {
  background-position: -35px -202px;
  display: none;
}
#tg-thumbs .guide .error {
  background-position: 0px -202px;
  display: none;
}

#tg-thumbs .genericError {
  position: relative;
  display: inline-block;
  width: 100%;
  /** moved into config.css height:98%; **/
  text-align:center;
  display: none;
}
#tg-thumbs .genericError i {
  position: relative;
  display: block;
  width: 28px;
  height: 26px;
  margin: 30px auto 0 auto;
  background: url('https://ir.ebaystatic.com/rs/v/nrzkkzqriy4mtno1tk5ziida5ix.png') no-repeat 0px -142px;
}
#tg-thumbs .genericError b {
  position: relative;
  display: block;
  font-weight: normal;
}

#tg-thumbs .del,
#tg-thumbs .rotateInPlace {
  background: url('https://ir.ebaystatic.com/rs/v/lqjga5zgwa2gdcjko3zsw0z1cqd.png') no-repeat -30px -3px;
  cursor: pointer;
  display: none;
  height: 12px;
  margin-left: 3px;
  position: absolute;
  right: 3px;
  top: 3px;
  width: 12px;
  z-index: 6;
}

#tg-thumbs .rotateInPlace {
  background-position: -31px -23px;
  left: 3px;
}

#tg-thumbs li:not([data=""]):hover .del,
#tg-thumbs li:not([data=""]):hover .rotateInPlace {
  display: inline-block;
}


.throb {
  position: relative;
  display: inline-block;
  height: 100%;
  width: 100%;
  display: none;
  background: url('https://ir.ebaystatic.com/rs/v/xxkixx0sue0pnoebjjzj1ivd02h.gif') no-repeat scroll 50% 50%;
}

.throb b.per{
  text-align: center;
  width: 100%;
}

.throb .prg {
  border: 0px solid transparent;
  border-radius: 3px;
  
}

.throb .prg,
.throb b {
  display: none;
}

.prog .throb .prg,
.prog .throb b {
  display: block;
}

.prog .throb {
  height: auto;
  top: 35%;
  background: none;
  padding: 0 5px;
  text-align: left;
  position: absolute;
  left: 0;
}

.throb >div {
  border: 1px solid #eee;
  border-radius: 3px;
  height: 5px;
  margin-top: 2px;
}

.throb >.prg>div {
  background: #209900;
  border-radius: 3px;
  height: 100%;
  width: 0%;
}

.throb b {
  color: #555;
  font-size: 11px;
  font-weight: bold;
}

#tg-thumbs .addPicBtn {
  position: relative;
  top: 1px;
  height: calc(100% - 2px);
  width: calc(100% - 2px);
  cursor: pointer;
  text-align: center;
  display: none;
  z-index: 10;
  color: #0654BA;
}
#tg-thumbs li:first-child .addPicBtn{
  display: inline-block;
}
#tg-thumbs .addPicBtn i {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  background: url('https://ir.ebaystatic.com/rs/v/nrzkkzqriy4mtno1tk5ziida5ix.png') no-repeat -86.5px -14px / 215px auto;
  margin: 25px auto 0 auto;
}
#tg-thumbs .addPicBtn:hover i {
  background-position: -112px -14px;
}
#tg-thumbs .addPicBtn b {
  display: block;
  position: relative;
  font-weight: normal;
  font-size:13px;
  white-space:normal;
  
}
#tg-thumbs .addPicBtnOff {
  cursor: default;
  outline: none;
}
#tg-thumbs .addPicBtnOff i {
  cursor: default;
  background-position: -250px -144px;
  outline: none;
}
#tg-thumbs .addPicBtnOff:hover i {
  background-position: -250px -144px;
}
#tg-thumbs .addPicBtnOff b {
  cursor: default;
  color: #86b1e4;
}
/************************************************
Tooltip component
*************************************************/
#tg-tooltip {
  position: absolute;
  display: none;
  z-index: 30;
  width: 200px;
}
#tg-tooltip .ptr {
  position: absolute;
  z-index: 2;
  background: url('https://ir.ebaystatic.com/rs/v/nrzkkzqriy4mtno1tk5ziida5ix.png') no-repeat 0 0;
  width: 8px;
  height: 17px;
  top: -10px;
}
#tg-tooltip .ptr.left {/** pointing to the left **/
  background-position: 0 -177px;
}

#tg-tooltip .ptr.right {/** pointing to the right **/
  background-position: -9px -177px;
  right: 0;
}
#tg-tooltip .msg {
  top: -25px;
  position: absolute;
  border: 1px solid #d2d2d2;
  background-color: #fff;
  display: inline;
  -moz-border-radius: 2px;
  border-radius: 2px;
  -webkit-box-shadow: 3px 3px 3px 0px rgba(125, 125, 125, .75);
  box-shadow: 3px 3px 3px 0px rgba(125, 125, 125, .75);
}
#tg-tooltip .msg.left {/** with a pointer pointing to the left **/
  left: 7px;
}
#tg-tooltip .msg.right {/** with a pointer pointing to the right **/
  right: 7px;
}
#tg-tooltip .msg .pad {
  position: relative;
  margin: 7px 10px 9px 10px;
  font-size: .9em;
  line-height: 1.3em;
  overflow: hidden;
  color: #555;
}
#tg-tooltip .msg .pad .hide {
  height: 1.2em;
  width: 30px;
  position: absolute;
  z-index: 10;
  bottom: 0;
  right: 0;
  /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9Ijg1JSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  background: -moz-linear-gradient(left,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 85%, rgba(255,255,255,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,1)), color-stop(85%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 85%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 85%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 85%,rgba(255,255,255,1) 100%); /* IE10+ */
  background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 85%,rgba(255,255,255,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-8 */
  
  /** Remove hide block for now **/
  display:none;
}
#tg-tooltip .msg .hdg {
  white-space: nowrap;
  font-weight: bold;
}


#tg-thumbs li span.move {
  position: relative;
  z-index: 10;
  width: 100px;
}
#tg-thumbs li.drop-ph{
	border:2px solid #3798c6;
	background:#fff;
}

#tg-thumbs li.drag-ph{
	border:0 !important;
}


#tg-thumbs li .thumb > div {
    background: #333;
    width:100%;
    color: #fff;
    display: none;
    left: 0;
    opacity: 0.7;
    padding: 5px 0px;
    position: absolute;
    bottom: 0;
    white-space: normal;
    z-index:1;
    font-size:11px;
}
#tg-thumbs li:hover .thumb > div{
	display:block;
	cursor: move;
}
#tg-thumbs .drag-ph:hover .thumb > div,#tg-thumbs li.drag-ph .tg-mainPicPnl{
	display:none !important;
}
