/* =============================== */
/* CART PREVIEW (PROFESSIONAL UI) */
/* =============================== */

.ezb-cart-preview {
    position: fixed;
    bottom: 120px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 480px;
    max-width: calc(100vw - 32px);
    padding: 18px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    transform: translateY(18px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

.ezb-cart-preview.active {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
}

/* =============================== */
/* HEADER */
/* =============================== */

.ezb-cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.ezb-cart-header h4 {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.ezb-cart-close,
.ezb-cart-clear {
    padding: 0;
    font-size: 0.75rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
}

.ezb-cart-close:hover,
.ezb-cart-clear:hover {
    text-decoration: underline;
    color: #dc2626;
}

/* =============================== */
/* ITEMS */
/* =============================== */

.ezb-cart-items {
    max-height: 280px;
    padding-right: 6px;
    overflow-y: auto;
}

/* main cart item */
.ezb-cart-item {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ezb-cart-item:last-child {
    border-bottom: none;
}

.ezb-cart-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ezb-cart-item-info {
    flex: 1;
}

.ezb-cart-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
}

/* metadata under title (date, persons, time) */
.ezb-cart-item-meta {
    margin-top: 3px;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #6b7280;
}

/* main item price */
.ezb-cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    color: #374151;
}

/* remove icon */
.ezb-cart-item-remove {
    margin-left: 6px;
    font-size: 1rem;
    color: #cbd5f5;
    background: none;
    border: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.ezb-cart-item-remove:hover {
    color: #dc2626;
}

/* =============================== */
/* ADDONS */
/* =============================== */

.ezb-cart-addons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

.ezb-cart-addon {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ezb-cart-addon-name {
    font-size: 0.8rem;
    line-height: 1.25;
    color: #4b5563;
}

.ezb-cart-addon-price {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    color: #374151;
}

/* =============================== */
/* TOTAL */
/* =============================== */

.ezb-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}

/* =============================== */
/* ACTION BUTTONS */
/* =============================== */

.ezb-cart-actions {
    display: flex;
    gap: 10px;
}

.ezb-cart-btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ezb-cart-btn-primary {
    color: #fff;
    background: #2563eb;
}

.ezb-cart-btn-primary:hover {
    background: #1d4ed8;
}

.ezb-cart-btn-secondary {
    color: #334155;
    background: #f1f5f9;
}

.ezb-cart-btn-secondary:hover {
    background: #e2e8f0;
}

/* =============================== */
/* ERROR */
/* =============================== */

.ezb-cart-error {
    padding: 8px 10px;
    font-size: 0.75rem;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 8px;
}

.ezb-cart-discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 13px;
    text-align:right;
    color: #1F7A4F;
    background: #EAF7F0;
    border-radius: 8px;
}

.ezb-cart-discount-label {
    font-weight: 500;
}

.ezb-cart-discount-amount {
    font-weight: 600;
}

.ezb-cart-error {
    position: relative;
    padding-right: 28px;
}

.ezb-cart-error-close {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    color: #991b1b;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
}

.ezb-cart-error-close:hover {
    opacity: 1;
}

.ezb-cart-addon {
    opacity: 0.9;
}

.ezb-cart-addon-name {
    font-size: 0.78rem;
    color: #6b7280;
}

.ezb-cart-addon-price {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
}

.ezb-cart-addons {
    margin-top: 6px;
    padding-left: 14px;
    border-left: 2px solid #e5e7eb;
}

.ezb-cart-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.ezb-cart-item-row {
    position: relative;
}

.ezb-cart-item-remove {
    align-self: flex-start;
    margin-top: 2px;
}

.ezb-cart-addons {
    margin-top: 6px;
    padding-left: 18px;
    border-left: 2px solid #e5e7eb;
}

.ezb-cart-addon-price {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}
.ezb-cart-item-price {
    margin-top: 6px;
}

.ezb-cart-item,
.ezb-cart-addons {
    padding-left: 2px;
}

.ezb-timer{
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
}

.ezb-cart-item-expired{
    font-size:0.85rem;
    opacity: 0.6;
}

/* =============================== */
/* MOBILE */
/* =============================== */

@media (max-width: 576px) {
    .ezb-cart-preview {
        bottom: 96px;
        right: 50%;
        width: calc(100% - 24px);
        transform: translate(50%, 18px);
    }

    .active.ezb-cart-preview {
        transform: translate(50%, 0);
    }

    .ezb-cart-item-row {
        display: grid;
        grid-template-areas:
        "main main"
        "side x";
    }

    .ezb-cart-item-main {
        grid-area: main;
    }

    .ezb-cart-item-side {
        grid-area: side;
    }

    .ezb-cart-item-remove {
        grid-area: x;
        text-align: right;
    }
}
.ezb-cart-discount {
    position: relative;
    display: inline-block;
}

.ezb-info-icon {
    cursor: pointer;
    margin-right: 6px;
}

.ezb-tooltip {
    display: none;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);

    background: #1f2937; /* tamno sivo, ne crno */
    color: #fff;

    padding: 10px 12px;
    border-radius: 8px;

    font-size: 13px;
    line-height: 1.4;

    white-space: normal;
    width: 240px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 100;

    opacity: 0;
    transition: all 0.2s ease;
}

.ezb-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}
.ezb-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    margin-right: 6px;
    cursor: pointer;

    vertical-align: middle; /* 🔥 bitno */
}

.ezb-info-icon svg {
    display: block;          /* 🔥 uklanja inline baseline problem */
    width: 16px;
    height: 16px;
}

.ezb-info-icon:hover svg {
    transform: scale(1.1);
    opacity: 0.8;
}