/**
 * 2007-2025 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    vitovtscode <vitovtscode@gmail.com>
 * @copyright 2007-2025 PrestaShop SA
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */

/*.product-vouchers-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background-color: #f8f8f8;
}
*/
.product-vouchers-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #3f3f3f;
    font-weight:600;
}

.product-vouchers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voucher-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    background-color: white;
}

.voucher-info {
    flex: 1;
}

.voucher-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.voucher-value {
    font-weight: bold;
    color: green;
    font-size: 14px;
}

.voucher-code-container {
    display: flex;
    align-items: center;   
}

.voucher-code {
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: bold;
    background: #f1f1f1;
    padding: 10px 10px;
}

.copy-voucher-btn {
    color: #d60000;
    background-color: #fff;
    border-color: #d60000 !important;
    padding: 3px 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.copy-voucher-btn:hover {
    background-color: #d60000;
    color:#f6f6f6;
}

.copy-voucher-btn.copied {
    background-color: #f6f6f6;
    color:#d60000;
}

@media (max-width: 768px) {
    .voucher-item {
        flex-direction: column;
        align-items: flex-start;
        align-items: center;
    }
    
    .voucher-code-container {
        margin-top: 10px;
        width: 50%;
        justify-content: space-between;
        align-items: center;
    }

}

.voucher-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.voucher-popup.show {
    opacity: 1;
    visibility: visible;
}

.voucher-popup-content {
    text-align: center;
}