/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

.dfd-merchant-reviews-widget {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.merchant-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.merchant-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.merchant-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.merchant-title {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.merchant-content {
    position: relative;
}

.merchant-rating-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px 0;
}

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

.rating-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.rating-max {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.stars-container {
    display: inline-flex;
    gap: 3px;
}

.star {
    font-size: 1.5rem;
    color: #ffc107;
    transition: color 0.2s ease;
}

.star.empty {
    color: #e0e0e0;
}

.review-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.reviews-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.merchant-details {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #f0f0f0;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
}

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

.detail-item:hover {
    background-color: #fafafa;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-label i {
    font-size: 1.1rem;
    color: #27ae60;
    width: 20px;
    text-align: center;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
    padding: 4px 8px;
    background: #f0f7ff;
    border-radius: 4px;
}

.merchant-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
}

.merchant-loading p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    animation: dfd-spin 1s linear infinite;
}

@keyframes dfd-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.merchant-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    text-align: center;
    margin: 15px 0;
}

.merchant-error p {
    margin: 0;
}

@media (max-width: 768px) {
    .merchant-panel {
        padding: 15px;
    }

    .merchant-title {
        font-size: 1.1rem;
    }

    .merchant-rating-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .review-count {
        align-items: flex-start;
        text-align: left;
    }

    .rating-number {
        font-size: 2rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-label {
        width: 100%;
    }

    .detail-value {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .merchant-panel {
        padding: 12px;
        border-radius: 6px;
    }

    .merchant-title {
        font-size: 1rem;
    }

    .rating-number {
        font-size: 1.75rem;
    }

    .reviews-number {
        font-size: 1.25rem;
    }

    .detail-label {
        font-size: 0.9rem;
    }

    .merchant-details {
        padding: 12px;
    }

    .detail-item {
        padding: 10px 0;
    }
}
