.shop-list {
    display: block;
}

.shop-item {
    width: calc(33.333% - 20px);
    height: 320px;
    float: left;
    margin: 10px 10px 30px 10px;
    border-top: 1px solid #ebebeb;
    padding-left: 1px;
    box-sizing: border-box;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.shop-item:hover {
    
}

.shop-item:nth-child(1n) {
    border-left: 1px solid #ebebeb;
    padding-left: 0;
}

.shop-item:nth-child(3n) {
    border-top-right-radius: 4px;
}

.product-img {
    height: 230px;
    overflow: hidden;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.product-img img {
    transition: all 0.3s;
}

.product-img:hover img {
    transform: scale(1.05);
}

.shop-item:hover .product-img {
    background: #f7f7f7;
}

.product-content {
    padding: 15px;
    position: absolute;
    bottom: -60px;
    transition: all 0.5s;
    width: 100%;
    background: #fff;
}

.product-title {
    font-size: 18px;
    position: relative;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
    display: flex;
}

.product-buttons {    
    display: flex;
    margin-top: 20px;
}

.product-buttons div {    
    display: inline-block;
    width: 50%;
    text-align: center;
    padding: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.3s;
}

.shop-item:hover .product-content {
    bottom: 0;
    box-shadow: 0px -2px 7px 0 #e2e2e2;
}

div.btn-buy {
    border-color: #3b55e6;
    background: #3b55e6;
    color: #fff;
    margin-left: 5px;
}

div.btn-buy:hover {
    border-color: #2a43ce;
    background: #2a43ce;
}

div.btn-buy:before {
    font-family: 'FontAwesome';
    content: '\f07a';
    margin-right: 10px;
    font-size: 14px;
}

div.btn-detail {
    border-color: #ececec;
    background: #fff;
    color: #5d5d5d;
    margin-right: 5px;
}

div.btn-detail a {
    color: #5d5d5d;
}

div.btn-detail:hover {
    border-color: #ececec;
    background: #fbfbfb;
}

div.btn-quick {
    background: url(../img/icons/quick-view.svg) no-repeat center;
    width: 64px;
    height: 64px;
    cursor: pointer;
    visibility: hidden;
    opacity: 0.6;
    position: absolute;
    left: calc(50% - 32px);
    top: calc(50% - 52px);
    transition: opacity 0.3s;
    transition: margin 0.2s;
    margin-top: -10px;
}

div.btn-quick:hover {
    opacity: 0.8;
}

.product-img:hover .btn-quick {
    visibility: visible;
    margin-top: 0;
} 

.shop-filter {
    padding: 30px 20px;
}

.filter-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.filters {

}

.filter-section {
    border-bottom: 1px solid #ededed;
    padding: 15px 0;
}

.f-section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.filter-section div {

}

/* Customize the label (the container) */
.f-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: normal;
  }
  
  /* Hide the browser's default checkbox */
  .f-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
  }
  
  /* On mouse-over, add a grey background color */
  .f-container:hover input ~ .checkmark {
    background-color: #ccc;
  }
  
  /* When the checkbox is checked, add a blue background */
  .f-container input:checked ~ .checkmark {
    background-color: #2196F3;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .f-container input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .f-container .checkmark:after {
    left: 9px;
    top: 4px;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .checkmark.ch-radio {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
  }

  .f-container .checkmark.ch-radio:after {
    top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
  }

  
.shop-sort {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    background: #f0f2f7;
    border-radius: 21px;
    padding: 8px 19px 6px 19px;
    border: 1px #e3e8f0 solid;
} 

.shop-sort select {
    height: 25px;
    padding: 0;
    width: 190px;
    margin: 0;
    border-radius: 0;
    border: none;
}

.shop-sort span {
    float: left;
    margin-right: 10px; 
    color: #7d7d7d;
}  
   
.shop-sort .shop-search {
    display: inline-block;
    width: 220px;
    margin-bottom: 2px;
    background: #fbfbfb;
    padding: 5px 20px;
}

.shop-sort .p-left {
    width: 100%;
    padding-top: 5px;
}

.shop-sort .p-right {
    
}

.price-new {

}

.price-old {
    font-weight: normal;
    margin-left: 15px;
    text-decoration: line-through;
    color: #8e8e8edd;
}

.product-labels {
    position: absolute;
    top: 5px;
    z-index: 2;
}

.product-labels div {
    margin: 5px 0;
    padding: 3px 12px;
    border-radius: 0 6px 6px 0; 
    width: max-content;   
}

.product-label {
    background: #F44336;
    color: #fff;
}

.product-version {
    background: #8BC34A;
    color: #fff;
}

#dialog-buy {
    position: fixed;
    background: #fff;
    z-index: 101;   
    
    box-shadow: 0px 1px 7px 0 #e2e2e2;
    border-radius: 6px;
}

#dialog-buy {
    top: calc(40% - 200px);
    left: calc(50% - 300px);
    width: 600px;
}

#dialog-detail .desc {
    font-size: 14px;
}

#dialog-detail .modal-content {
    margin: 150px auto 50px;
}

#dialog-buy .dlg-dino-info, #dialog-detail .dlg-dino-info {
    display: flex;
}

#dialog-buy .dlg-dino-img, #dialog-detail .dlg-dino-img {
    max-width: 200px;
    max-height: 200px;
    max-width: 200px;
    margin-right: 30px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

#dialog-buy .dlg-dino-img img {
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 200px;
}

#dialog-buy .dlg-dino-add-info, #dialog-detail .dlg-dino-add-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

#dialog-buy .dlg-dino-name {
    font-size: 20px;
}

#dialog-buy .dlg-dino-name span {
    margin-left: 10px;
    color: #777;
}

#dialog-buy .dlg-dino-price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

#dialog-detail .dlg-buttons, #dialog-buy .dlg-buttons {
    padding: 0 30px 30px;
    margin-top: 0;
    margin-bottom: 30px;
}

#dialog-buy .dlg-yes {
    left: calc(50% - 155px);
}

#dialog-buy .dlg-no {
    left: calc(50% + 15px);
}

.dlg-dino-img {
    display: block !important;
}

.product-title i {
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    right: 4px;
    top: 2px;
}

.f-container i {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 12px;
    vertical-align: top;
}

.dlg-dino-gender {
    display: flex;
    margin-top: 15px;
}

.dlg-dino-gender div {
    background: #f9f9f9;
    padding: 4px 15px;
    border: 1px solid #cecece;
    cursor: pointer;
}

.dlg-dino-gender div:first-child {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.dlg-dino-gender div:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

.dlg-dino-gender div.selected {
    background: #00BCD4;
    color: #fff;
    border-color: #00BCD4;
}

.dlg-warning {
    display: none;
    border: 1px solid #FF9800;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 25px;
}

.dlg-warning.showed {
    display: block;
}

.dlg-warning span {
    font-size: 16px;
    color: #b77007;
}

.dlg-warning label {
    margin: 5px 0;
    font-weight: normal;
    user-select: none;
}

.dlg-warning input[type="checkbox"] {
    margin: 0 8px 0 0;
}

#dialog-detail .dlg-dino-img img {
    max-height: 180px;
}

#dialog-detail .dlg-dino-props b {
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.dlg-dino-props {
    margin-top: 20px;
}

.dlg-dino-props table {

}

.dlg-dino-props table td {
    text-align: left;
    padding: 3px 10px;
}

.dlg-dino-props tr:nth-child(2n) {
    background: #f9f9f9; 
} 

.dlg-dino-props table td:first-child {
    width: 280px;
}

.wpd_header_builder {
    z-index: unset;
}

#dialog-detail .desc {
    line-height: 18px;
    margin-bottom: 20px;
    background: #ededed;
    padding: 15px;
    border-radius: 5px;
}

.dlg-dino-props td i {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 12px;
    vertical-align: text-top;
}

.product-growth-stage {
    position: absolute;
    right: 15px;
    top: 44px;
    color: #8e8e8edd;
    font-size: 16px;

    /*background: #8e8e8edd;
    font-size: 12px;
    color: #fff;
    padding: 0px 8px;
    border-radius: 5px;*/
}

.dlg-header i {
    font-style: normal;
    margin-left: 10px;
    color: #777;
}

.dlg-dino-server {
    margin-top: 15px;
    max-width: 230px;
}

.dlg-controls span {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.dlg-controls select {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 5px;
    padding: 6px 12px;
    margin-bottom: 5px;    
    -webkit-appearance: menulist;
    appearance: menulist;  
}

.dlg-controls select option {
    
}

.dlg-controls .slots-info {
    color: #3a405b;
    background: #f5f7ff;
    padding: 4px 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.dlg-dino-server .slots-info.slots-empty {
    color: #f44337;
    background: #ffe4e2;
}

.clan-discount {
    padding: 15px 15px;
    background: #efffdd;
    border-radius: 5px;
    margin: -30px 10px 20px;
    font-size: 16px;
    color: #497519;
}


.dlg-shop-buttons {
    padding: 20px;
    display: inline-block;
    width: 100%;
}

#dialog-select-friend {
    background: #fff;    
    box-shadow: -1px 4px 11px 3px rgba(0, 0, 0, 0.06);
    width: 500px;
    border-radius: 8px;
    z-index: 102;
    top: calc(40% - 200px);
    left: calc(50% - 300px);
    width: 600px;
}

#dialog-select-friend .dlg-shop-buttons {
    padding: 0 30px 20px;
}

#dialog-select-friend .dlg-shop-buttons .b-self{
    margin: 0;
    user-select: none;
}

#dialog-select-friend textarea {
    height: unset;
}

.sum-total {
    float: left;
    font-size: 16px;
    line-height: 42px;
}

.sum-total b {

}

.gift-balance {
    display: flex;
}

.gift-balance div {
    width: 50%;
    text-align: center;
    background: #f9f9f9;
    padding: 6px 15px;
    border: 1px solid #cecece;
    cursor: pointer;
    font-size: 12px;
    color: #868686;
    line-height: 14px;
}

.gift-balance div:first-child {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.gift-balance div:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

.gift-balance div i {
    font-style: normal;
    font-weight: bold;
    display: block;
    font-size: 16px;
    line-height: 26px;
    color: #3a405b;
}

.gift-balance div.selected {
    background: #00BCD4;
    color: #fff;
    border-color: #00BCD4;
}

.gift-balance div.selected i {
    color: #fff;
}

.dlg-shop-buttons .b-self, .dlg-shop-buttons .b-gift {
    display: inline-block;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    float: right;
    margin: 0 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.dlg-shop-buttons .b-self {
    background: #4CAF50;
}

.dlg-shop-buttons .b-self:hover {
    background: #43a748;
}

.dlg-shop-buttons .b-gift {
    background: none;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.dlg-shop-buttons .b-gift::before {
    content: '\f06b' !important;
    font-family: 'FontAwesome';
    margin-right: 10px;
    font-size: 18px;
}

.dlg-shop-buttons .b-gift:hover {
    color: #fff;
    background: #4CAF50;
}

.dlg-dino-skin {
    margin-top: 15px;
    max-width: 230px;
}

.dlg-dino-clan {
    display: none;
}

@media only screen and (max-width: 1200px) {
    .shop-item {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 640px) {
    .shop-item {
        width: 100%;
        margin: 15px 0;
    }

    .shop-sort .p-left {
        padding-top: 0;
    }

    .shop-sort .p-right {
        padding-top: 5px;
    }

    .shop-sort .shop-search {
        width: 100%;
    }

    #dialog-buy, #dialog-detail {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
    }

    #dialog-buy .dlg-dino-info, #dialog-detail .dlg-dino-info {
        display: block;
    }

    #dialog-buy .dlg-dino-img, #dialog-detail .dlg-dino-img {
        max-width: 100%;
        max-height: unset; 
        margin-bottom: 20px;
        margin-right: 0;
        text-align: center;
    }

    #dialog-buy .dlg-dino-img img {
        max-width: 100%;
        max-height: unset;
    }

    .dlg-dino-server {
        margin-top: 15px;
        max-width: 100%;
    }
}