/**
 * WooCommerce Custom Price Display Styles
 *
 * @package vierzeh
 */

/* General price container */
.price {
    font-weight: 500;
    line-height: 1.4;
}

/* Range price ("ab X") */
.price-range {
    font-weight: 500;
}

/* Regular price (no sale) */
.price-regular {
    font-size: 1.1rem;
}

/* Sale price container */
.price-sale {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Upper row with badge and original price */
.price-original {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sale badge container with timer */
.sale-badge-container {
    position: relative;
    display: inline-block;
}

/* Sale timer (styled like a tooltip) */
.price-row.price-countdown {
    background-color: var(--complementary-400);
    color: #f0f000;
    padding: .25rem .5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    font-weight: 400;
    margin-bottom: .375rem;
    width: max-content;
    position: relative;
}

/* Sale badge */
.sale-badge {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    background-color: var(--complementary-400);
    color: #f0f000;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform:uppercase;
    margin-right: .5rem;
}

/* Crossed out original price */
.price-sale .regular-price {
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1em;
}

/* Current (sale) price row */
.price-current {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
}

.price-sale .price-current {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--sale-red);
}

/* MwSt text styling */
.price-current small {
    font-size: 0.75rem;
    font-weight: normal;
    color: #7d7d7d;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .sale-timer {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .sale-badge {
        font-size: 0.7rem;
    }
}

.price-row.price-countdown svg {
    position: relative;
    top: -1px;
    margin-right: .25rem;
}

.price-row.price-countdown span.sale-timer {
    font-weight: 600;
    margin-left: .125rem;
}






.price-row.price-countdown::after {
    content: '';
    position: absolute;
    left: .5rem;
    bottom: -.25rem;
    width: 0;
    height: 0;
    border-left: .5rem solid transparent;
    border-right: .5rem solid transparent;
    border-top: .5rem solid var(--complementary-400);
    border-radius: 0.5rem;
}



.regular-price .amount:before {
    top: .5rem;
    background: var(--sale-red);
    opacity: 1;
    content: "";
    width: 120%;
    position: relative;
    height: 0.1em;
    border-radius: 0.1em;
    left: -10%;
    white-space: nowrap;
    display: block;
    transform: rotate(-8deg);
}