#compras {
    display: none;
    width: 50px;
    height: 50px;
    align-content: center;
    text-align-last: center;
}

body {
    background-color: #f7f7f77a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    color: #000000;
    margin-top: 15px;
    margin-bottom: 15px;
    height: auto;
    font-size: 30px;
    text-align: center;
    cursor: default;
}
 

#tachoCont {
    display: flex;
    padding: 5px;
    width: max-content;
    flex-direction: row;
    border-radius: 10px;
    height: 20px;
    align-content: center;
    justify-content: center;
    align-items: center;
    color: gray;
    transition: fill 0.15s ease;
}

h3 {
    margin-top: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

#tachoCont:hover {
    color: black;
    cursor: pointer;
}

#tachoCont:hover #tachoLabel {
    color: black;
    transition: fill 0.15s ease;
}

#comprasTitulo {
    font-size: 32px;
    color: #FF8200;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

.estado {
    margin-bottom: 10px;
}

.estado-envio {
    height: auto;
    display: flex;
    flex-direction: column;
}

#tituloCompra {
    font-size: 32px;
    color: #FF8200;
    margin-left: 10px;
    margin-top: -75px !important;
    font-family: 'Inter', sans-serif;
    margin-bottom: 25px;
}

#titleCont {
    margin-left: 50px;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

#volverCont {
    margin-left: 50px;
    display: flex;
    width: max-content;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

#loadingAnim2 {
    user-select: none;
    position: fixed;
    background-color: #2424248a;
    width: 100%;
    height: 100%;
    z-index: 15;
}

#loadingAnimGif {
    position: fixed;
    width: 130px;
    height: 130px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#volverCont svg {
    color: #666666;
}

#volverCont:hover {
    cursor: pointer;
}

#volverCont:hover svg {
    color: black;
    cursor: pointer;
}

#volverCont:hover #volver {
    color: black;
    cursor: pointer;
}


#volver {
    font-size: 16px;
    margin-left: 10px;
    font-family: 'Inter', sans-serif;
    color: #666666;
}

#titulo_carrito {
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    color: #000000;
    margin-top: 15px;
    margin-bottom: 15px;
    height: auto;
    font-size: 30px;
    text-align: center;
    cursor: default;
}

#nombreCont {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tachoLabel {
    font-size: 14px;
    margin-left: 0px;
    color: #c1c1c1;
    font-family: 'Inter', sans-serif;
}

#prodImg {
    width: 100px;
    height: 100px;
    margin-left: 5px;
    border-radius: 5px;
}

#leftPart {
    display: flex;
    flex-direction: row;

}

hr {
    width: 97% !important;
    border: 1px solid #c1c1c1 !important;
    border-radius: 2px  !important;
    margin-bottom: 5px !important;
    margin-top: 0px !important;
}

#bloque_compras {
    display: flex;
    overflow: hidden;
    max-height: 0;
    position: absolute;
    z-index: 99;
    background-color: rgba(211, 211, 211, 0.548);
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(8px);
    transition: max-height 0.4s ease;
    width: 40%;
    transform: translate(calc(-32vw), 50px);
    transform-origin: top left;
    box-shadow: 0px 0px 10px 0px black;
    border-radius: 10px;
}

#bloque_compras.abierto {
    max-height: 500px;
    width: 40%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px black;
}

#art_container {
    overflow-y: auto;
    height: 250px;
}

#articulos {
    display: flex;
    flex-direction: column;
}

.cantidad-producto {
    width: 30px;
    height: 15px;
    margin-left: 1px;
    text-align: center;
    align-content: center;
    color: #3d3d3dc7;
}


#cantidadCont {
    display: flex;
    width: auto;
    padding: 5px;
    width: 10px;
    margin-left: -10px;
    align-items: center;
    justify-content: center;

}

#cambiarCantidadCont {
    width: max-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.Articulo {
    user-select: none;
    width: -webkit-fill-available;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    height: auto;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-content: center;
    flex-direction: row;
    align-items: center;
    justify-self: center;

}

.articulo:hover {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 0 1.5px #f3af61;
}

#nombre {
    width: 260px;
    text-align-last: start;
    text-wrap: wrap;
    text-align: start;
    margin-left: 10px;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 5px;
    align-self: start;
}

#unidad {
    width: auto;
    text-align-last: center;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 5px;
    margin-top: 0px;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-overflow: ellipsis;
}

#register_btn {
    display: none;
}

#metodoEntregaCont {
    display: flex;
    flex-direction: column;
}

.icono-tacho {
    fill: white;
    transition: color 0.15s ease;
    cursor: pointer;
    width: 15px;
    margin-right: 5px;
    height: auto;
}

.icono-tacho path {
    transition: fill 0.15s ease;
}

#finalizar_compra {
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    margin-top: auto;
    font-family:'Inter';  
    display: block;
    border-radius: 10px;
    margin-bottom: 0px;
    user-select: none;
    background-color: rgb(248, 140, 0) ;
    color: white;
}

#finalizar_compra:hover {
    background-color: rgb(197, 112, 0); 
    text-underline-offset: 3px; 
}


#envioContainer {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    gap: 15px;
    width: 270px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

#labelContainer {
    display: flex;
    align-items: center;
    gap: 10px;
}

#labelContainer label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#imgViaCargo {
    width: 100px;
    height: 15px;
}

#inputData {
    width: auto;
    height: 5px;
    border-radius: 5px;
}

#inputData::placeholder {
    font-size: 12px;
    color: #888888;
    font-style: italic;
}


#tipoEnvioContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#tipoEnvioContainer label {
    font-size: 13px;
    color: #555;
}

#tipoenvio {
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #393939;
    width: 540px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: 0.3s all;
    cursor: pointer;
    border: none;
    background: #FFFFFF;
    box-shadow: 2px 2px 2px rgba(127, 127, 127, 0.5);
    border-radius: 10px;
}

#metodoEntrega {
    padding: 10px 12px;
    border-radius: 8px; 
    background-color: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: 0.3s all;
    cursor: pointer;
    border: none;
    background: #FFFFFF;
    box-shadow: 2px 2px 2px rgba(127, 127, 127, 0.5);
    border-radius: 10px;
}

#metodoEntrega:hover {
    border-color: #ff7b00;
    background-color: gainsboro;
}

#metodoEntrega:focus {
    border-color: #ff7b00;
    background-color: gainsboro
}

#tipoenvio:hover {
    border-color: #ff7b00;
    background-color: gainsboro;
}

#tipoenvio:focus {
    border-color: #ff7b00;
    background-color: gainsboro;
}


#titulo {
    color: #FF8200;
    margin-top: 0px;
    margin-bottom: 0px;
    font-family: 'Inter';
}
#totalCont {
    background: white;
    display: flex;
    margin-top: 10px;
    margin-bottom: 15px;
    flex-direction: column;
    height: 150px;
    justify-content: space-evenly;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3);
}

#resumen_total {
    font-family: 'Inter';
    margin-right: 4px;
}

#politicasCont {
    display: flex;
    margin-top: 20px;
    flex-direction: row;
    align-items: center;
    gap: 12px; 
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

#labelMetodoEntrega {
    margin-bottom: 10px;
}

#miCheck {
    width: 26px;
    height: 26px;
    margin-left: 10px;
    cursor: pointer;
    accent-color: #007bff;
    transition: transform 0.2s ease;
}

#miCheck:hover {
    transform: scale(1.1);
}

#miCheck:active {
    transform: scale(0.9);
}

#checkLocal {
    width: 26px;
    height: 26px;
    margin-left: 10px;
    cursor: pointer;
    accent-color: #007bff;
    transition: transform 0.2s ease;
}

#checkLocal:hover {
    transform: scale(1.1);
}

#checkLocal:active {
    transform: scale(0.9);
}

#viacargo_label {
    font-size: 15px;
    margin-right: 10px;
    margin-left: 10px;
    font-weight: bold;
}

#viacargo_cont {
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    margin-bottom: 5px;
}

#datos_envio_label {
    font-size: 15px;
    font-weight: bold;
    color: black;
}

#inputData {
    align-items: center;
    padding: 12px 161px 12px 0px;
    width: 51%;
    height: 10px;
    padding-left: 10px;
    border: none;
    background: #FFFFFF;
    box-shadow: 2px 2px 2px rgba(127, 127, 127, 0.5);
    border-radius: 5px;
}

#inputData:hover {
    background-color: rgb(232, 232, 232);
}

#envio_cont {
    width: 100%;
    display: flex;
    height: 70%;
    padding-top: 10px;
    gap: 10px;
    flex-direction: column;
}

#datos_envio_cont {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#checkEnvio {
    width: 26px;
    height: 26px;
    margin-left: 10px;
    cursor: pointer;
    accent-color: #007bff;
    transition: transform 0.2s ease;
}

#checkEnvio:hover {
    transform: scale(1.1);
}

#checkEnvio:active {
    transform: scale(0.9);
}

#labelPoliticas {
    font-size: 14px;
    transition: color 0.25s ease;
}


#contactateTxt {
    color: green;
    font-size: 15px;
    text-decoration: underline;
    margin-top: 10px;
}

#pEfectivoStrong {
    color: green;
    font-size: 20px;
    margin-right: 5px;
    margin-bottom: 0px;
    font-family: 'Inter';
}

#efectContDiv {
    display: flex;
    width: -webkit-fill-available;
    flex-direction: row;
    margin-top: 20px;
    padding: 3px;
    border-radius: 5px;
    background: #00ff001c;
    box-shadow: 0px 0px 0px 1px #00800082;
    justify-content: space-between;
    align-items: center;
}

#pAhorroTxt {
    color: green;
    font-size: 12px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: -10px;
    margin-left: 4px;
    margin-bottom: 0px;
    padding: 0;
}

#efectCont {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#titleEfect {
    color: green;
    text-align: start;
    margin-left: 5px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

#pEfectivo {
    font-family: 'Inter', sans-serif;
    color: green;
    font-size: 12px;
    text-wrap: nowrap;
    width: -webkit-fill-available;
    margin-left: 4px;
    margin-top: 4px;
    margin-bottom: 8px;
}

#art_header {
    display: flex;
    width: -webkit-fill-available;
    flex-direction: row;
    justify-content: space-between;
}

#art_headerL {
    display: flex;
    margin-left: 15px;
    flex-direction: row;
    gap: 50px;
}

#art_headerR {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-right: 20px;
}

#envio_header_label {
    font-size: 15px;
    margin-left: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
}

#info_envio {
    margin-left: 100px;
    width: 103%;
    height: max-content;
    display: flex;
    padding: 10px;
    padding-bottom: 40px;
    background: white;
    box-shadow: 2px 2px 5px 0px #00000040;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 10px;
}

#gen_container_L {
    margin-left: 100px;
    width: 100%;
    padding: 20px;
    height: max-content;
    display: flex;
    background: white;
    box-shadow: 2px 2px 5px 0px #00000040;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 10px;
}

#rightPart {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

#pMarca {
    font-size: 15px;
    padding: 5px;
    text-align: center;
    margin: 0;
    height: max-content;
    width: 100px;
}

#pPrecio {
    font-size: 15px;
    margin: 0;
    color: #000;
    text-align: end;
    margin-right: 15px;
    display: flex;
    height: max-content;
    width: 80px;
    flex-direction: column;
}

#resumen {
    display: flex;
    width: 42%;
    height: max-content;
    margin-right: 20px;
    flex-direction: column;
    border-radius: 10px;
    background: white;
    box-shadow: 2px 2px 5px 0px #00000040;
    padding: 30px;
}

#resumen_titulo {
    font-size: 24px;
    font-family: 'Inter', sans-serif;
}

#r_header {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    color: black;
}

#resumen_headers {
    display: flex;
    margin-top: 20px;
    flex-direction: row;
    width: 97%;
    align-self: center;
    justify-content: space-between;
}

#resumen_prod {
    display: flex;
    width: 97%;
    margin-left: 5px;
    box-shadow: 0px 1px 0px #00000040;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

#resumen_prodPrecio {
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

#resumen_cant {
    margin-left: 15px;
}

#resumen_prod_left {
    display: flex;
    width: 275px; 
    flex-direction: row;
    align-content: center;
    text-align: start;
    margin-left: 5px; 
    align-items: center;
    font-size: 13px;
    justify-content: flex-start;
}

p {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 5px;
    text-decoration: none;
    text-align: start;
    color: #3d3d3dc7;
    width: 70%;
    justify-self: center;
}

#resumen_cant {
    font-size: 16px;
}

#resumen_prods {
    font-size: 10px;

    text-align-last: start;
    text-align: start;
    display: flex;
    text-align: start;
    align-items: start;
    flex-direction: column;
    align-items: flex-start;

}

#contVert {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#contHor {
    gap: 150px;
    width: 57%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.boton-pago {
    user-select: none;
    margin-top: 30px;
    cursor: pointer;
    align-self: center;
    color: white;
    border: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0px;
    width: 371px;
    height: 34px;
    background: #FF8200;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 34px;
}

.boton-pago:hover {
    background-color: #cf6b00;
}

#articulos2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mdp-text {
    font-size: 15px;
    font-style: italic;
    text-wrap: nowrap;
    width: 100%;
    margin-top: -5px;
    margin-left: 0;
}

#resumen_total_div {
    font-size: 15px;
    font-weight: bold;
    margin-left: 5px;
    display: flex;
    width: 98%;
    font-family: 'Inter';
    flex-direction: row;
    justify-content: space-between;
}

#total-text {
    width: -webkit-fill-available;
    margin: 0;
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#total-strong-text {
    font-size: 40px;
    align-self: center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#btn_contact {
    padding: 10px;
    background-color: #008000;
    color: white;
    margin-bottom: 0;
    margin-left: 5px;
    border-radius: 4px;

}

#btn_contact:hover {
    cursor: pointer;
    background-color: #002e00;
    text-decoration: underline;
}

.sinStock {
    background-color: #ff9393 !important;
}


.compra-total {
    text-align: right;
    font-size: 1rem;
    color: #333;
    border-top: 2px solid #e67e22;
    padding-top: 10px;
    font-weight: bold;
}

.compra-shipping {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgb(249 235 222);
}

.compra-shipping h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #e67e22;
    font-family: 'Inter';
}

.compra-shipping p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #333;
}
  
.compra-shipping dl {
    margin: 0;
}

.compra-shipping dt {
    font-weight: 600;
    font-family: 'Inter';
    font-size: 14px;
    color: #333;
}

.compra-shipping dd {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 14px;
    font-family: 'Inter';
    margin-bottom: 0px;
}

.compra-shipping div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ddd;
    padding: 6px 0;
    align-items: center;
}


#titulo_compra {
    display: flex;
    flex-direction: row;
}


.compras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px;
    width: 80%;
}

.compra-card {
    width: 100%;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.compra-card:hover {
    border-color: #e67e22;
}

.compra-header {
    display: flex;
    width: -webkit-fill-available;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 12px;
}

#estado_envio {
    font-weight: bold;
    color: #e67e22;
    font-family: 'Inter';
}

#btnPdf {
    margin-top: -6px;
    font-size: 16px;
    height: 30px;
    width: 50px;
    margin-left: -150px;
    border-radius: 5px;
    background: #ff8229;
}

#comprasHeader {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-items: center;
}

#btnPdf:hover {
    background-color: #e07212;
}

.compra-header .fecha {
    font-size: 15px;
    color: #666;
    margin-right: 50px;
    text-wrap: nowrap;
}

.compra-envio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgb(249 235 222);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.estado-envio .estado {
    font-weight: bold;
    color: #e67e22;
    font-size: 16px;
    font-family: 'Inter';
}


.url-seguimiento,
.codigo-seguimiento {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Inter';
}

.url-seguimiento .codigo {
    font-size: 15px;
    color: #0078d7;
    font-weight: 100;
    text-decoration: underline;
    cursor: pointer;
}

.codigo-seguimiento .codigo {
    font-family: monospace;
    font-weight: 100;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 193, 7, 0.15);
    padding: 3px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.codigo-seguimiento .codigo:hover {
    background: rgba(255, 193, 7, 0.3);
}

.codigo-seguimiento .codigo.copiado {
    background: #c99700;
    color: #fff;
}

.compra-details {
    margin-bottom: 16px;
    background: rgb(249 235 222);
    padding: 12px;
    border-radius: 5px;
}

.compra-details h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 0px;
    font-family: 'Inter';
    color: #e67e22;
}

.productos-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.producto-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff7d;
    border: 1px solid #ff730052;
    border-radius: 5px;
    padding: 8px;
    padding-right: 20px;
    padding-left: 12px;
}

.producto-info {
    display: flex;
    flex-direction: column;
}

.producto-nombre {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.producto-cantidad {
    font-size: 0.85rem;
    color: #666;
}

.producto-precio .subtotal {
    font-weight: bold;
    font-size: 1rem;
    color: #e67e22;
}