/* ==========================================================================
   kasuwa Footer Styles — ftr- prefix
   Replaces Bootstrap CSS classes in footer_block.php + make_footer_block.php
   Also includes kw-modal styles for modal inner elements
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables (reuse header vars where possible)
   -------------------------------------------------------------------------- */
:root {
    --ftr-max-width: 1190px;
    --ftr-primary: #10A5BB;
    --ftr-primary-hover: #0d8a9c;
    --ftr-border: #dee2e6;
    --ftr-transition: .2s ease;
}

/* --------------------------------------------------------------------------
   Price Hint
   -------------------------------------------------------------------------- */
.ftr-price-hint {
    max-width: var(--ftr-max-width);
    margin: 0 auto;
    padding: 4px 15px;
    text-align: right;
}

.ftr-price-hint small {
    color: #999;
}

/* --------------------------------------------------------------------------
   Delivery Time Hint
   -------------------------------------------------------------------------- */
.ftr-delivery-hint {
    max-width: var(--ftr-max-width);
    margin: 0 auto;
    padding: 4px 15px;
    text-align: right;
    line-height: 14px;
}

.ftr-delivery-hint small {
    color: #999;
}

/* --------------------------------------------------------------------------
   Social Media Buttons
   -------------------------------------------------------------------------- */
.ftr-social-bar {
    max-width: var(--ftr-max-width);
    margin: 0 auto;
    padding: 16px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ftr-social-label {
    margin: 0 10px;
    white-space: nowrap;
}

.ftr-social-label img {
    width: 65px;
    margin: -5px 5px 0 5px;
}

.ftr-social-buttons {
    display: flex;
    gap: 8px;
}

.ftr-social-btn {
    display: flex;
    align-items: center;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
}

.ftr-social-btn:hover {
    opacity: .9;
    text-decoration: none;
    color: #fff;
}

.ftr-social-btn img {
    width: 30px;
    margin: 3px 3px 3px 6px;
}

.ftr-social-btn span {
    display: none;
    margin: 7px 11px 5px 0;
    font-weight: 700;
}

@media (min-width: 768px) {
    .ftr-social-btn span {
        display: block;
    }
}

.ftr-social-btn--instagram { background-color: #D5005F; }
.ftr-social-btn--facebook  { background-color: #3A5A98; }
.ftr-social-btn--pinterest { background-color: #BD081B; }

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.ftr-newsletter {
    background-color: #fff;
    border-top: 2px solid var(--ftr-border);
    padding: 16px 0 0;
}

.ftr-newsletter-inner {
    max-width: var(--ftr-max-width);
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 768px) {
    .ftr-newsletter-inner {
        grid-template-columns: auto 1fr auto;
    }
}

.ftr-newsletter-promo-mobile {
    display: block;
    text-align: right;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .ftr-newsletter-promo-mobile {
        display: none;
    }
}

.ftr-newsletter-promo-desktop {
    display: none;
}

@media (min-width: 992px) {
    .ftr-newsletter-promo-desktop {
        display: block;
        text-align: right;
    }
}

.ftr-newsletter-form {
    text-align: center;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Footer Link Grid
   -------------------------------------------------------------------------- */
.ftr-section {
    background-color: #fff;
    border-top: 1px dashed #bbb;
    padding-top: 31px;
}

.ftr-container {
    max-width: var(--ftr-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.ftr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
}

@media (min-width: 992px) {
    .ftr-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ftr-col {
    margin-bottom: 24px;
}

.ftr-col h6 {
    font-weight: 700;
}

.ftr-col img.ftr-logo {
    margin-top: -10px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Footer Link List
   -------------------------------------------------------------------------- */
.ftr-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ftr-link {
    display: block;
    padding: 3px 0;
    color: #212529;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: none;
}

.ftr-link:hover,
.ftr-link:focus {
    color: var(--ftr-primary);
    font-weight: 700;
    text-decoration: none;
}

.ftr-link svg {
    vertical-align: -2px;
}

/* --------------------------------------------------------------------------
   Service Column — Badge/Seal
   -------------------------------------------------------------------------- */
.ftr-seal {
    text-align: right;
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Copyright Bar
   -------------------------------------------------------------------------- */
.ftr-copyright {
    text-align: center;
    padding: 8px 0;
    background-color: #fff;
    border-top: 1px solid var(--ftr-border);
    font-size: 90%;
}

.ftr-copyright svg {
    color: #e25555;
    vertical-align: -2px;
}

/* --------------------------------------------------------------------------
   kw-modal — Modal styles (vanilla JS + Bootstrap fallback)
   -------------------------------------------------------------------------- */
.kw-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kw-modal-overlay--visible {
    display: flex;
}

.kw-modal-dialog {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: kwModalIn 0.2s ease-out;
}

@keyframes kwModalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ftr-border);
}

.kw-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.kw-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.kw-modal-close:hover {
    color: #333;
}

.kw-modal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.kw-modal-body .kw-modal-info-icon {
    color: var(--ftr-primary);
    vertical-align: -2px;
    margin-right: 4px;
}

.kw-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--ftr-border);
}

/* --------------------------------------------------------------------------
   Cookie Consent specific
   -------------------------------------------------------------------------- */
.kw-cc-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.kw-cc-toggle {
    flex-shrink: 0;
    width: 70px;
}

.kw-cc-desc {
    flex: 1;
}

.kw-cc-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* hdr-btn additions for success state (used in cookie consent toggle) */
.hdr-btn--success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.hdr-btn--success:hover {
    background: #218838;
    border-color: #218838;
    color: #fff;
}

.hdr-btn--disabled {
    cursor: default;
    pointer-events: none;
    opacity: .8;
}
