.cardWrapper {
    /* border: solid 1px #252523; */
    /* border-radius: 5px; */
    width: 250px;
    height: 360px;
    /* height: 280px; */
    margin: 20px;
    /* padding: 30px 10px 30px 10px; */
    padding: 40px 10px 30px 10px;
    background-color: white;
    position: relative;
    /* background: linear-gradient(135deg, white 30%, #E6E3D2 60%); */
    overflow: hidden;
    box-shadow: 0 4px 10px 0 rgb(33 43 53 / 12%);
    border-radius: 5px;
    text-align: center;
}

.compact-card-wrapper {
    width: 100%;
    box-shadow: 0 4px 10px 0 rgb(33 43 53 / 12%);
    border-radius: 5px;
    margin-bottom: 30px;
    position: relative;
    text-align: left;
    background-color: white;
}

.card-link-name {
    display: flex;
    flex-direction: row;
    line-height: 21px;
    align-items: center;
}

.compact-card-link {
    text-decoration: none;
    color: black;
}

.compact-card-top {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.compact-card-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 10px;
}

.compact-card-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
} 

.green {
    filter: invert(56%) sepia(85%) saturate(2396%) hue-rotate(82deg) brightness(121%) contrast(129%);
}

.red {
    filter: invert(16%) sepia(83%) saturate(7117%) hue-rotate(359deg) brightness(111%) contrast(113%);
}

.gray {
    filter: invert(55%) sepia(0%) saturate(1829%) hue-rotate(336deg) brightness(92%) contrast(75%);
}

.compact-card-price::after {
    content: '>';
    margin-left: 5px;
    color: #E38200;
}

.whisky-card-info-item:nth-child(1) {
    margin-left: 10px;
}

.whisky-card-info-item:nth-child(2)::before {
    content: '|';
    margin: 0 10px;
}

.compact-card-wrapper:hover{
    box-shadow: 0 16px 24px 0 rgba(33,43,53,.2),0 -2px 8px 0 rgba(33,43,53,.12);
}

.card-wrapper-link {
    position: relative;
    text-decoration: none;
    color: black;
}

.card-wrapper-link a {
    text-decoration: none;
    color: black;
}

.cardWrapper:hover{
    box-shadow: 0 16px 24px 0 rgba(33,43,53,.2),0 -2px 8px 0 rgba(33,43,53,.12);
}

.ribbon {
    margin: 0;
    padding: 0;
    background: #E38200;
    color:black;
    padding:10px 0;
    position: absolute;
    top:0;
    right:0;
    transform: translateX(30%) translateY(0%) rotate(45deg);
    transform-origin: top left;
}

.ribbon:before,
.ribbon:after {
    content: '';
    position: absolute;
    top:0;
    margin: 0 -1px; /* tweak */
    width: 100%;
    height: 100%;
    background:#E38200;
}

.ribbon:before {
    right:100%;
}

.ribbon:after {
    left:100%;
}

.buyBtn {
    background-color: transparent;
    border-radius: 5px;
    padding: 5px;
    width: 50%;
    cursor: pointer;
    border: 1px solid #E38200;
    font-weight: bolder;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.whisky-specifics {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}

.WhiskeyImage {
    height: 125px;
    display: block;
    margin: auto;
}

.info-section {
    position: absolute;
    bottom: -25px;
    /* bottom: -20px; */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.info-section-high {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.price-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 10px;
    justify-content: center;
    min-height: 53px;
}

.price {
    margin: 0 5px;
    font-size: 20px;
}

.reg-price-high {
    color: red;
    text-decoration: line-through;
}

.reg-price-low {
    color: gray;
}

.uk-price-low {
    color: gray;
    font-size: 12px;
}

.uk-price {
    font-size: 8px;
    color: red;
}

.membership-required {
    font-size: 10px;
    width: 200px;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.membership-required::before {
    content: '*';
}

.whiskey-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    min-height: 36px;
    max-height: 48px;
    line-height: 1.2;
}

.stock-size {
    font-size: 12px;
    height: 12px;
}

.line-break {
    border: 2px solid #E38200;
    border-radius: 50%;
}

.last-updated {
    width: 100%;
    font-size: 9px;
    color: grey;
    margin-top: 10px;
}

.toggle-list {
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 32px;
    display: flex;
    flex-wrap: wrap;
    width: 18%;
    z-index: 99;
}

.toggle-list-back {
    position: absolute;
    top: 5px;
    right: 0;
    font-size: 32px;
    display: flex;
    flex-wrap: wrap;
    width: 20%;
}

.toggle-list:hover {
    cursor: pointer;
}

.toggle-list-back  {
    cursor: pointer;
}

.toggle-list svg {
    width: 100%;
}

#flip-forward, #flip-back {
    filter: invert(72%) sepia(56%) saturate(5659%) hue-rotate(5deg) brightness(94%) contrast(101%);;
}

#flip-forward, #flip-back:hover {
    transform: perspective(600px) rotateY(-360deg);
    transition: transform 1s linear;
}

.compare-title {
    font-size: 10px;
    width: 100%;
}

.tool-tip {
    width: 175px;
    background-color:#f3ba22;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    right: 10px;
    top: 70px;
    z-index: 1;
    text-align: left;
    color: black;
    display: none;
    opacity: 0.9;
}

.tool-tip::after {
    content: " ";
    position: absolute;
    bottom: 100%;  /* At the top of the tooltip */
    right: 0;
    border-width: 15px;
    border-style: solid;
    margin-right: 4px;
    border-color: transparent transparent #f3ba22 transparent;
}

.tip-close {
    color: #E6E3D2;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 10px;
}

.card-back {
    overflow-y: auto;
}

.current-whisky {
    color: #E38200;
}

.card-item {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    text-overflow: ellipsis;
    font-size: 14px;
    width: 100%;
    line-height: 18px;
    align-items: center;
    margin-bottom: 10px;
}

.card-item span:nth-child(1) {
    width: 65%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-item span:nth-child(2) {
    width: 30%;
}

.card-item-buy {
    float: right;
    border: 1px solid #f3ba22;
    padding: 2px 5px;
    background-color: #f3ba22;
    color: black;
    border-radius: 5px;
}

.card-item-buy a {
    color: black;
    text-decoration: none;
}

/* .card-site-name {
    max-width: 30%;
} */

.front,.back{
    transition: transform 0.5s linear;
    backface-visibility: hidden;
    overflow: hidden;
}

.front {
    transform: perspective(600px) rotateY(0deg);
}
.back{
     transform: perspective(600px) rotateY(-180deg);
}

.rotated > .front{
    transform: perspective(600px) rotateY(180deg);
  }
.rotated > .back{ 
    transform: perspective(600px) rotateY(0deg);
  } 
  
.card {
    display: grid;
}

.card > * {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
}
.card .back {
    z-index: 2;
}
.card .front {
    z-index: 1;
}

#myChart {
    width: 80%;
    margin: auto;
}

.color-primary-filter {
    filter: invert(71%) sepia(43%) saturate(6778%) hue-rotate(5deg) brightness(94%) contrast(101%);
}

.arrow-right {
    margin-left: 10px;
}

.add-to-btn {
    z-index: 100;
    position: absolute;
    bottom: 25px;
    left: 35px;
}

@media screen and (max-width: 900px) {
    .instockicon {
        position: absolute;
        right: 65%;
        top: 3px;
    }

    .compact-card-price {
        width: 50%;
        text-align: right;
        font-size: 22px;
        font-weight: 500;
        padding-right: 10px;
        position: relative;
    }
}

@media screen and (min-width: 901px) {
    .instockicon {
        position: absolute;
        right: 28%;
        top: 3px;
    }

    .compact-card-price {
        width: 65%;
        text-align: right;
        font-size: 22px;
        font-weight: 500;
        padding-right: 10px;
        position: relative;
    }
}

.arrow-right {
    margin-right: 10px;
}
