:root {
            --dominant-color: #B92117;
            --dominant-text: #FFFFFF;
            --yellow: #D4AC0D;
            --orange: #D35400;
            --white: #FFFFFF;
            --light-gray: #F5F5F5;
            --dark-gray: #333333;
            --success-green: #28a745;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--light-gray);
            color: var(--dark-gray);
            margin: 0;
            padding: 0;
        }

        .confirmation-container {
            max-width: 900px; /* Aumentado para ordenadores */
            margin: 50px auto;
            padding: 30px;
            background: var(--white);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
        /* Estilo para pantalla completa en PC */
        @media (min-width: 769px) {
            .confirmation-container {
                max-width: 80%;
                width: 90%;
            }
        }

        .success-animation {
            font-size: 80px;
            color: var(--success-green);
            margin-bottom: 20px;
            animation: bounce 1s infinite alternate;
        }

        @keyframes bounce {
            from {
                transform: translateY(0);
            }

            to {
                transform: translateY(-15px);
            }
        }

        h1 {
            color: var(--dominant-color);
            margin-bottom: 20px;
            font-size: 2.5em; /* Aumentado para PC, se ajustará en móviles */
        }
        
        p {
            font-size: 1.1em; /* Mayor legibilidad */
        }

        .order-summary {
            background: var(--light-gray);
            border-radius: 10px;
            padding: 25px; /* Más padding para espacio */
            margin: 25px 0;
            text-align: left;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px; /* Espacio entre columnas */
        }

        .order-detail {
            margin-bottom: 0;
            padding-bottom: 15px;
            border-bottom: 1px solid #ddd;
        }

        .order-detail:last-child {
            border-bottom: none;
        }
        
        .order-summary .items-list {
            grid-column: 1 / -1; /* Ocupa todo el ancho */
        }

        .detail-label {
            font-weight: 600;
            color: var(--dark-gray);
            font-size: 1.1em; /* Aumentado */
            display: block; /* Para que ocupe toda la línea */
            margin-bottom: 5px;
        }

        .detail-value {
            color: #555;
            font-size: 1em; /* Aumentado */
        }

        .delivery-method {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: 600;
            margin: 10px 0;
        }

        .delivery {
            background-color: #d4edda;
            color: #155724;
        }

        .pickup {
            background-color: #fff3cd;
            color: #856404;
        }

        .payment-method {
            font-weight: 600;
            margin: 15px 0;
        }

        .cash-payment {
            color: var(--dominant-color);
        }

        .mp-payment {
            color: var(--yellow);
        }

        .pending {
            color: #ffc107;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
        }

        .btn {
            padding: 15px 30px; /* Aumentado para móviles */
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            font-size: 1em; /* Aumentado */
            white-space: nowrap; /* Evita que el texto se parta */
        }
        
        .btn i {
            margin-right: 8px;
            font-size: 1.2em; /* Iconos más grandes */
        }

        .btn-primary {
            background-color: var(--dominant-color);
            color: var(--white);
            border: none;
        }

        .btn-primary:hover {
            background-color: var(--orange);
        }

        .btn-secondary {
            background-color: var(--white);
            color: var(--dominant-color);
            border: 2px solid var(--dominant-color);
        }

        .btn-secondary:hover {
            background-color: var(--light-gray);
        }
        
        /* Estilos para los mapas */
        #delivery-map, #store-map {
            z-index: 1;
            background-color: #f8f9fa;
        }

        /* Estilo para los enlaces de mapas */
        .map-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .map-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 10px 15px;
            background-color: #B92117;
            color: white;
            border-radius: 5px;
            text-decoration: none;
            font-size: 1em;
            transition: background-color 0.3s;
        }

        .map-link:hover {
            background-color: #9a1b14;
        }

        .map-link i {
            font-size: 1.2em;
        }
        
        .item-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 1em; /* Tamaño de fuente para productos */
        }
        
        .order-detail .item-row span:last-child {
            font-weight: 600;
        }
        
        /* Layout de 2 columnas en PC y una sola en móviles */
        @media (min-width: 769px) {
            .order-summary {
                grid-template-columns: 1fr 1fr;
            }
            .order-summary .order-detail:nth-child(4) {
                grid-column: 1 / 2;
            }
            .order-summary .order-detail:nth-child(5) {
                grid-column: 2 / 3;
            }
        }
        
        @media (max-width: 768px) {
            .confirmation-container {
                margin: 20px 10px;
                padding: 20px;
            }

            h1 {
                font-size: 2em;
            }

            .order-summary {
                padding: 15px;
            }

            .action-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn {
                width: 100%;
                font-size: 1em;
            }
            
            .map-options .map-link {
                width: 100%;
                text-align: center;
            }
        }
        
        /* Botón Salir */
        .exit-button {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background-color: var(--dominant-color);
            color: var(--white);
            border: none;
            border-radius: 30px;
            padding: 12px 25px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .exit-button:hover {
            background-color: var(--orange);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: var(--white);
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .modal h2 {
            color: var(--dominant-color);
            margin-bottom: 15px;
        }

        .modal p {
            margin-bottom: 25px;
            font-size: 1.1em;
            line-height: 1.5;
        }

        .modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .modal-btn {
            padding: 12px 25px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            border: 2px solid var(--dominant-color);
            transition: all 0.3s;
        }

        .modal-btn-cancel {
            background-color: var(--white);
            color: var(--dominant-color);
        }

        .modal-btn-cancel:hover {
            background-color: var(--light-gray);
        }

        .modal-btn-confirm {
            background-color: var(--dominant-color);
            color: var(--white);
        }

        .modal-btn-confirm:hover {
            background-color: var(--orange);
        }

        .confirmation-container {
            max-width: 900px;
            margin: 50px auto;
            padding: 30px;
            background: var(--white);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
         /* Responsive */
        @media (max-width: 768px) {
            .exit-button {
                top: 10px;
                right: 10px;
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .modal-content {
                padding: 20px;
                margin: 20px;
            }

            .modal-buttons {
                flex-direction: column;
            }

            .modal-btn {
                width: 100%;
            }
        }