/* Candelea Footer — Frontend Styles */

/* ---- Wrapper ---- */
.candelea-footer {
    width: 100%;
}

/* ---- Logo ---- */
.candelea-footer__logo {
    margin-bottom: var(--cf-logo-gap, 2rem);
}

.candelea-footer__logo-link {
    display: inline-block;
}

.candelea-footer__logo-img {
    display: block;
    max-height: 48px;
    width: auto;
}

/* ---- Bottom bar ---- */
.candelea-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

/* ---- Payment logos ---- */
.candelea-footer__payment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.candelea-footer__payment-logo {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* ---- Copyright nav ---- */
.candelea-footer__copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.candelea-footer__copyright-link {
    text-decoration: none;
    color: inherit;
}

.candelea-footer__copyright-link:hover {
    text-decoration: underline;
}

.candelea-footer__copyright-sep {
    opacity: 0.5;
}

/* ---- Default CSS vars (fallback if no inline style) ---- */
.candelea-footer {
    --cf-color-title: #ffffff;
    --cf-color-text:  #cccccc;
    --cf-color-link:  #cccccc;
    --cf-color-hover: #ffffff;
    --cf-item-gap:    0.5rem;
    --cf-logo-gap:    2rem;
}

/* ---- Columns ---- */
.candelea-footer-columns {
    display: grid;
    grid-template-columns: repeat(var(--cf-grid, 4), 1fr);
    gap: 2rem;
}

.candelea-footer-col {
    grid-column: span var(--cf-span, 1);
}

.candelea-footer-col__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cf-color-title, #ffffff);
}

.candelea-footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--cf-item-gap, 0.5rem);
}

.candelea-footer-col__item {
    margin: 0;
    padding: 0;
    color: var(--cf-color-text, #cccccc);
}

.candelea-footer-col__link {
    text-decoration: none;
    color: var(--cf-color-link, #cccccc);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.candelea-footer-col__link:hover {
    color: var(--cf-color-hover, #ffffff);
    text-decoration: underline;
}

.candelea-footer__copyright-link {
    color: #000000;
}

@media (max-width: 767px) {
    .candelea-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .candelea-footer-col {
        grid-column: span 1;
    }
}

@media (max-width: 479px) {
    .candelea-footer-columns {
        grid-template-columns: 1fr;
    }
}
