/*
Theme Name: Rivetwise
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.woocommerce-product-gallery__image > a > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.single-product__3dwrap {
    margin-top: 50px;
    width: 100%;
}

.single-product__3dwrap iframe {
    width: 100%;
    height: 300px;
}

.price-wrapper .small {
    font-weight: 300;
    font-size: 14px;
    color: #111111;
}

.single_variation_wrap .woocommerce-Price-amount.amount {
	font-size: 28px;
}

.variations .reset_variations {
    bottom: -20px;
    background: red;
    padding: 5px 10px;
    font-weight: 600;
    color: white;
    font-size: 12px;
    opacity: 1;
}

.single_variation_wrap {
	margin-top: 34px;
}

.woocommerce-variation-price {
    padding-top: 12px !important;
}

 .woocommerce-variation-custom-wrap {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
 }

.woocommerce_custom_field {
	font-weight: 700;
}

.woocommerce_custom_field span{
	font-weight: 400;
}

.woocommerce-variation-custom-wrap-rest {
    display: none !important;
}

.custom-table-container  {
    margin-top: 20px;
}

.price__discount-message {
    font-size: 24px;
    color: #42419d;
}
.cart__page {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

.cart__page {
    padding-top: 50px;
    padding-bottom: 50px;
}


}

.single-product__form-title {
    color: #42419d;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.single-product__form p {
	margin-bottom: 5px;
}


.hidden {
    display: none;
}

.woocommerce__product-custom {
    display: none;
}

/** Info table **/
.info-table td {
    position: relative;
    height: 40px;
    padding: 2px;
}

.info-table tr th,
.info-table tr td {
    text-align: center;
}

.info-table tr th:first-child,
.info-table tr td:first-child,
.info-table-head tr td:first-child {
    width: 200px;
    text-align: left;
}

.info-table .variation-info:hover  +.info  {
    display: block;
	min-width: 180px;
}

.info-table .variation-info {
    width: 100%;
    height: 100%;
    background: #43419e;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.info-table .variation-info:after {
    position: absolute;
    content: '';
    left: calc(50% - 12px);
    top: calc(50% - 12px);
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.info-table .variation-info:hover {
    background: #9cc52b;
}

.info-table .info {
    position: absolute;
    background: #111111;
    clip-path: polygon(100% 0, 99% 95%, 55% 95%, 50% 100%, 45% 95%, 0 95%, 0 0);
    color: white;
    padding: 10px 10px 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    bottom: calc(100% - 10px);
    display: none;
    z-index: 2;
}

.info-table .info table td {
    border: 1px solid white;
    color: white;
}

.info-table-head {
    margin-bottom: 0px;
}

.info-table-head td, .info-table-head th {
    border: none;
}

.icon-arrow-right2 {
    width: 15px;
    height: 15px;
}

.label-y {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.accordion,
.variations-table-wrap {
    margin-bottom: 50px;
}

.lenght-title,
.accordion-list {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    font-weight: 700;
}

.lenght-title svg{
    width: 15px;
    height: 15px;
}

.accordion-list svg {
    width: 10px;
    height: 10px;
} 

.accordion-item{
    border-bottom: 1px solid #44419e;
    margin-bottom: 5px;
}

.accordion-header {
    padding: 5px 10px 5px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.accordion-header:after {
    position: absolute;
    content: '';
    right: 20px;
    top: calc(50% - 7px);
    width: 14px;
    height: 14px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid #44419e;
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    background-color: #9cc52b;
}

.accordion-item.active .accordion-header:after {
    transform: rotate(0deg);
}

.accordion-item .accordion-header:hover {
    background-color: #9cc52b;
}

.variation-info .wrap {
   display: flex;
   flex-wrap: wrap;
   gap: 5px;    
}

.variation-info p {
    padding: 5px;
    background-color: gray;
    color: white;    
}

.accordion-content {
    display: none;
    padding: 10px 10px 0px;
    background: #ddd;
}

.accordion-content.active {
    display: flex;
}

/** New meta on product page */

.alternative {
	background: #9cc62c;
    padding: 5px 10px;
    margin-bottom: 20px;
}

.alternative h5 {
	color: #111111;
    border-bottom: 1px solid;
}
.alternative__wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.alternative__image {
	flex: 0 0 20%;
    max-width: 20%;
}

.alternative__title {
	flex: 0 0 60%;
    max-width: 60%;
}

.alternative__button-wrap {
	flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    justify-content: flex-end;
}

.alternative__button {
	background: #44419e;
    color: white;
    padding: 7px 10px;
    font-weight: bold;
    font-size: 14px;
}

.alternative__button:hover {
	background: #22206a;
    color: white;
}

.alternative__title{
	padding-left: 10px;
}

.alternative__title p {
	margin-bottom: 0px;
	font-size: 14px;
    margin-top: 5px;
	color: #44419e;
}

.alternative__title-link {
	font-size: 14px;
    line-height: 20px !important;
    color: #111111;
    display: block;
}

.alternative__title-link:hover {
	text-decoration: underline;
}

/** Hide some fields */
.product_cat-rivet-tools .yith-ywraq-add-to-quote {
    display: none !important;
}

@media (max-width: 991px) {
    .variations-table-wrap {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .variations-table-wrap {
        display: block !important;
    }

    .accordion-wrap {
        display: none !important;
    }
}