/* ==================== */
/* KURSEVI CENA WIDGET  */
/* ==================== */

.ks-cena-widget {
    margin: 28px 0;
}

.ks-cena-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #101840;
    margin: 0 0 10px;
}

.ks-cena-desc {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    color: #5a628a;
    margin: 0 0 20px;
    max-width: 90ch;
}

/* Card */
.ks-cena-card {
    background: #fff;
    border: 1px solid rgba(16, 24, 64, 0.08);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(16, 24, 64, 0.06);
}

/* Cena red */
.ks-cena-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ks-cena-price-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ks-cena-price {
    font-size: 42px;
    font-weight: normal;
    color: #101840;
    line-height: 1;
    letter-spacing: -1px;
}

.ks-cena-regular {
    font-size: 13px;
    font-weight: normal;
    color: #5a628a;
}

.ks-cena-old {
    text-decoration: line-through;
    color: #9a9db5;
}

.ks-cena-save {
    background: linear-gradient(135deg, #d75628, #562d6f);
    color: #fff;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    align-self: flex-start;
}

/* Odbrojavanje */
.ks-cena-countdown {
    background: rgba(16, 24, 64, 0.03);
    border: 1px solid rgba(16, 24, 64, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.ks-cena-cd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.ks-cena-cd-label {
    font-size: 14px;
    font-weight: normal;
    color: #101840;
}

.ks-cena-pill {
    font-size: 12px;
    font-weight: normal;
    color: #d75628;
    border: 1px solid rgba(215, 86, 40, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    background: rgba(215, 86, 40, 0.06);
}

.ks-cena-cd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ks-cena-cd-box {
    background: #fff;
    border: 1px solid rgba(16, 24, 64, 0.08);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ks-cena-cd-box b {
    font-size: 24px;
    font-weight: normal;
    color: #101840;
    line-height: 1;
}

.ks-cena-cd-box span {
    font-size: 11px;
    font-weight: normal;
    color: #9a9db5;
    text-transform: lowercase;
}

/* Dugme */
.ks-cena-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #d75628 0%, #562d6f 100%);
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.2s;
}

.ks-cena-btn:hover {
    opacity: 0.87;
    transform: translateY(-2px);
    color: #fff;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */

@media (max-width: 600px) {
    .ks-cena-price {
        font-size: 34px;
    }

    .ks-cena-card {
        padding: 16px;
        border-radius: 16px;
    }

    .ks-cena-cd-box b {
        font-size: 20px;
    }

    .ks-cena-title {
        font-size: clamp(22px, 5vw, 30px);
    }
}

@media (max-width: 400px) {
    .ks-cena-cd-grid {
        gap: 5px;
    }

    .ks-cena-cd-box {
        padding: 8px 4px;
    }

    .ks-cena-cd-box b {
        font-size: 18px;
    }
}
/* Currency Tooltip */
.ks-currency-tooltip-trigger {
    position: relative;
    display: inline-block;
}

.ks-currency-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid rgba(86, 45, 111, 0.15);
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 64, 0.25), 0 2px 8px rgba(16, 24, 64, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10000;
    min-width: 180px;
    max-width: 220px;
    pointer-events: none;
    overflow: visible;
    backdrop-filter: blur(0px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ks-currency-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: rgba(86, 45, 111, 0.15);
    margin-bottom: -1px;
}

.ks-currency-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

.ks-currency-tooltip-trigger:hover .ks-currency-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .ks-currency-tooltip {
        left: auto;
        right: -10px;
        transform: none;
    }
    
    .ks-currency-tooltip::before,
    .ks-currency-tooltip::after {
        left: auto;
        right: 20px;
        transform: none;
    }
}
        transform: none;
    }
}