/*
 * Geekcel Sticky Bar - main.css
 */
body.geekcel-bar-is-visible {
    padding-bottom: 80px !important;
}
.geekcel-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    box-sizing: border-box;
    transition: bottom 0.4s ease-in-out;
}
.geekcel-bar.visible {
    bottom: 0;
}
.geekcel-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.geekcel-bar__image {
    flex: 0 0 50px;
    margin-right: 15px;
}
.geekcel-bar__image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.geekcel-bar__details {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin-right: 15px;
}
.geekcel-bar__title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    max-height: 39px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.geekcel-bar__price {
    font-size: 14px;
    font-weight: 500;
    color: #FD2C56;
    margin-top: 2px;
}
.geekcel-bar__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.geekcel-bar__button {
    background-color: #f2a039 !important;
    color: #ffffff !important;
    border: 1px solid #f2a039;
    border-radius: 4px;
    width: 100%;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 15px !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: inflate-every-5s 5s ease-in-out infinite;
}
.geekcel-bar__button svg {
    flex-shrink: 0;
    vertical-align: text-bottom;
}
.geekcel-bar__button .btn-text {
    line-height: 1; 
}
.geekcel-bar__button:hover {
    background-color: #e49a3d !important; 
    transform: translateY(-2px);
    animation-play-state: paused;
}
.geekcel-bar__button.added {
    background-color: #28a745 !important;
    border-color: #238c3a !important;
}

/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */
.geekcel-floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    /* Se elimina el padding de aquí */
    box-sizing: border-box;
    background-color: #25D366;
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: transform 0.2s ease-in-out, bottom 0.4s ease-in-out;
    animation: bounce-every-8s 8s ease-in-out infinite;
}
/* A la etiqueta SVG se le da un tamaño fijo */
.geekcel-floating-whatsapp svg {
    width: 32px;
    height: 32px;
}
.geekcel-floating-whatsapp:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}
body.geekcel-bar-is-visible .geekcel-floating-whatsapp {
    bottom: 95px;
}
/* --- FIN DE ESTILOS DE WHATSAPP --- */


@media (max-width: 768px) {
    .geekcel-bar__content { padding: 0 10px; }
    .geekcel-bar__image { margin-right: 10px; }
    .geekcel-bar__title { font-size: 14px; max-height: 36.4px; }
    .geekcel-bar__price { font-size: 13px; }
    .geekcel-bar__details { margin-right: 10px; }
    .geekcel-bar__button { min-width: 100px; padding: 10px 15px; font-size: 15px; }

    .geekcel-floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    .geekcel-floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
    body.geekcel-bar-is-visible .geekcel-floating-whatsapp {
        bottom: 90px;
    }
}

@media (max-width: 400px) {
    .geekcel-bar__image { display: none; }
    .geekcel-bar__button { min-width: 90px; font-size: 14px; }
}

@keyframes bounce-every-8s {
  0%, 15%, 100% { transform: translateY(0) scale(1); }
  7.5% { transform: translateY(-8px) scale(1); }
}

@keyframes inflate-every-s {
  0%, 20%, 100% { transform: scale(1); }
  10% { transform: scale(1.05); }
}

.wc-pao-addons-container.addon-field-error {
  border: 2px solid #D63638;
  border-radius: 5px;
  padding: 15px;
  margin: -15px;
  box-shadow: 0 0 12px rgba(214, 54, 56, 0.4);
  transition: all 0.3s ease-in-out;
}