/* Shared CSS
--------------------------------------------- */

.wp-element-button.btn-small {
	font-size: calc(var(--wp--preset--font-size--small) * 0.85);
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
}

/* Single Product - Trusted Parts
--------------------------------------------- */
table.trustedparts-suppliers {
	margin-top: 1rem;
	width: 100%;
	text-align: left;
	border-collapse: collapse;
    border-spacing: 0;
}
table.trustedparts-suppliers thead {
    background-color: var(--wp--preset--color--accent-4);
    color: var(--wp--preset--color--contrast);
    font-weight: 600;
}
table.trustedparts-suppliers th {
	border: solid 1px #dddddd;
    padding: 8px 8px;
}
table.trustedparts-suppliers td {
	border: solid 1px #dddddd;
    padding: 8px 8px;
}

table.trustedparts-suppliers td {
	font-size: var(--wp--preset--font-size--small);
}
table.trustedparts-suppliers tr td:first-of-type {
	font-weight: bold;
}
table.trustedparts-suppliers tr td:last-of-type {
	text-align: center;
}


/* WooCommerce - Cart Icon
--------------------------------------------- */

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-icon__link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.cart-icon__link:hover {
    opacity: 0.7;
}

.cart-icon__svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-icon__count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--wp--preset--color--accent-1, #007cba);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 0 4px;
    box-sizing: border-box;
}

.cart-icon__count:empty {
    display: none;
}

/* Hide count when cart is empty */
.cart-icon__count[data-cart-count="0"] {
    display: none;
}

/* Animation for cart updates */
.cart-icon__count {
    transition: all 0.3s ease;
}

.cart-icon.updating .cart-icon__count {
    transform: scale(1.2);
    background-color: var(--wp--preset--color--accent-2, #005a87);
}


/* Product Tabs 
------------------------------------------- */

.tab-titles-wrapper {
	display: flex;
    justify-content: center;
	margin-bottom: 2rem;
}
.tab {
	display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--wp--custom--color--input-border);
    border-radius: 36px;
    background-color: var(--wp--preset--color--accent-4);
	gap: 4px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background: transparent;
    border: 0;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    transition: all 0.2s ease;
    outline: none;
    font-size: calc(var(--wp--preset--font-size--medium) * 1.1);
    border-radius: 25px;
    min-height: 50px;
	font-weight: bold;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    color: #fff;
    background: var(--wp--preset--color--accent-2);
}

/* Style the tab content */
.tabcontent {
  display: none;
}