/* ============================================================
   DELIVERY INFO
   ============================================================ */
.delivery-info-container {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
}

.delivery-row {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.delivery-row:last-child {
    border-bottom: none;
}

.delivery-row h3 {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
}

.delivery-date {
    color: #4CAF50;
}

.delivery-free {
    color: #4CAF50;
    font-weight: bold;
}

.delivery-flex {
    display: flex;
    align-items: center;
}

.delivery-icon {
    width: 18px;
    min-width: 18px;
    margin-right: 10px;
}

.delivery-text {
    font-size: 12px;
    line-height: 16px;
}

.delivery-logo {
    height: 23px !important;
    margin-left: auto;
}

.delivery-phone {
    font-weight: bold;
}

.delivery-timer {
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 2px 5px;
    font-weight: bold;
    color: #4caf50;
    display: inline-block;
}

.payment-logo {
    max-width: 100%;
    height: 14px !important;
    margin-left: 6px;
}

/* ============================================================
   PRODUCT RATINGS (shortcode)
   ============================================================ */
.product-info {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-rating,
.product-purchased {
    padding: 4px 24px;
    border: 1px solid #9e83694f;
    border-radius: 32px;
    background-color: #9e83691f;
    font-size: 13px;
    color: #9e8369;
    text-align: center;
    line-height: 14px;
}

.product-rating .stars {
    display: inline-block;
    font-size: 14px;
    color: #9e8369;
}

.product-rating .star.full {
    color: #9e8369;
}

.product-rating .star.half {
    color: #9e8369;
    opacity: 0.6;
}

.product-rating .star.empty {
    color: #ddd;
}

.product-rating .rating-value {
    margin-left: 8px;
    font-size: 13px;
    color: #9e8369;
}

/* ============================================================
   RATING POPUP (store-wide)
   ============================================================ */
.rating-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    font-family: Arial, sans-serif;
    z-index: 9999;
    min-width: 170px;
    border: 1px solid #e0e0e0;
}

.rating-popup-content {
    position: relative;
}

.rating-popup-close {
    position: absolute;
    top: -10px;
    right: 0px;
    background: #ffffff;
    color: #9e8369;
    border: none;
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.rating-popup-close:hover {
    color: #333;
}

.rating-header {
    text-align: center;
    margin-bottom: 12px;
}

.rating-score {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.rating-stars {
    color: #ffc107;
    font-size: 28px;
    letter-spacing: -2px;
    line-height: 1;
}

.rating-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.certificate-icon {
    color: #4caf50;
    display: flex;
    align-items: center;
}

.rating-info {
    flex: 1;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

.rating-text {
    font-size: 16px;
    font-weight: bold;
    color: #4caf50;
}

/* Animacja pojawiania się */
.rating-popup.show {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rating-popup.closing {
    animation: slideOutDown 0.3s ease-in forwards;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .rating-popup {
        bottom: 10px;
        right: 10px;
        padding: 15px;
        min-width: 180px;
    }

    .rating-score {
        font-size: 20px;
    }

    .rating-stars {
        font-size: 24px;
    }
}
