/**
 * Custom Terrain Styles
 * All custom CSS styles and animations
 */

.hover-underline .button-atom__text, 
.tm-close-text {
    position: relative;
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    line-height: 1.2;
}

.ct-underline {
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 100%;
    background: currentColor;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -ms-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
    pointer-events: none;
    will-change: transform;
}

.link-underline,
.breakdance-menu-link,
.breakdance-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    line-height: 1.2;
}

.link-underline a {
    position: relative !important;
    display: inline !important;
    text-decoration: none !important;
    line-height: 1.2;
}

.link-underline.bde-rich-text a .ct-underline,
.link-underline.breakdance-rich-text-styles a .ct-underline {
    bottom: 0;
}

.tm-close {
    position: absolute;
    bottom: 30px;
    right: 25px;
    background: transparent;
    border: none;
    font-family: 'Season Sans-TRIAL', sans-serif;
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 0.01em;
    cursor: pointer;
    color: #483636;
    z-index: 10;
    display: inline-block;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.tm-close::before {
    content: none;
}

.tm-close:hover {
    color: #FF7010;
}

.ct-sorting {
    opacity: 0.6;
    cursor: move;
}

.ct-term-notice {
    margin: 20px 0;
}
/*
.breakdance-menu-link .ct-underline,
.breakdance-link .ct-underline {
    bottom: -2px;
}
*/
/* Hide default ::after pseudo element on secondary buttons with hover-icon */
.hover-icon .button-atom--secondary::after {
    display: none !important;
}

/* Icon wrapper for animation */
.ct-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-left: 8px;
	margin-top: 1px;
}
.button-atom--secondary .ct-icon {
margin-top: 4px 1important;
}
.button-atom--custom .ct-icon svg path {
    stroke-width: 1 !important;
}
.ct-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* Ensure button has flex layout for icon */
.hover-icon button {
    display: inline-flex;
    align-items: center;
}

.bde-loop-item,
.bde-container-link {
    overflow: hidden !important;
    position: relative;
}
