/**
 * KB Local Business Schema - Elementor Widgets Styles
 *
 * Styles for custom Elementor widgets.
 */

/* ==========================================================================
   Contact Info Widget
   ========================================================================== */

.kb-contact-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.kb-contact-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.kb-contact-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 1;
}

.kb-contact-item-icon i {
    display: inline-block;
    line-height: 1;
}

.kb-contact-item-icon svg {
    display: inline-block;
    vertical-align: middle;
}

.kb-contact-item-text {
    flex: 1;
    line-height: 1.5;
}

.kb-contact-item-text a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.kb-contact-item-text a:hover {
    text-decoration: underline;
}

/* Opening Hours specific styles */
.kb-contact-hours .kb-contact-item-text {
    display: block;
}

.kb-oh-day {
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.kb-oh-time {
    display: inline-block;
}

/* Multi-line address */
.kb-contact-address .kb-contact-item-text br + br {
    display: none;
}

/* No data message (editor only) */
.kb-contact-no-data {
    color: #888;
    font-style: italic;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .kb-oh-day {
        min-width: 80px;
    }
}

/* Mobile phone - stacked layout for contact hours */
@media (max-width: 480px) {
    .kb-contact-hours .kb-contact-item-text {
        line-height: 1.6;
    }

    .kb-contact-hours .kb-oh-day {
        min-width: auto;
        display: block;
        margin-bottom: 2px;
    }

    .kb-contact-hours .kb-oh-time {
        display: block;
        padding-left: 0;
    }
}

/* ==========================================================================
   Opening Hours Widget
   ========================================================================== */

.kb-opening-hours {
    display: flex;
    align-items: flex-start;
}

.kb-oh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 1;
}

.kb-oh-icon i,
.kb-oh-icon svg {
    display: inline-block;
    vertical-align: middle;
}

.kb-oh-icon i {
    color: currentColor;
}

.kb-oh-icon svg {
    fill: currentColor;
}

.kb-oh-body {
    flex: 1;
    min-width: 0;
}

.kb-oh-title {
    margin: 0 0 15px 0;
    padding: 0;
}

.kb-oh-content {
    display: block;
}

.kb-oh-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.kb-oh-row:last-child {
    margin-bottom: 0;
}

.kb-opening-hours .kb-oh-day {
    display: inline-block;
    min-width: 100px;
    flex-shrink: 0;
}

.kb-oh-times {
    display: flex;
    flex-direction: column;
}

.kb-oh-times .kb-oh-time {
    display: grid;
    grid-template-columns: max-content max-content max-content max-content;
    gap: 0;
}

.kb-oh-time-open,
.kb-oh-time-close {
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 5ch;
}

.kb-oh-time-sep {
    text-align: center;
    width: 3ch;
    display: inline-block;
}

.kb-oh-time-suffix {
    text-align: left;
    padding-left: 0.5ch;
    margin-right: 1ch;
}

/* No data message (editor only) */
.kb-oh-no-data {
    color: #888;
    font-style: italic;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

/* Stacked layout - day label above times */
.kb-oh-layout-stacked .kb-oh-row {
    flex-direction: column;
    align-items: flex-start;
}

.kb-oh-layout-stacked .kb-oh-day {
    min-width: auto;
    margin-bottom: 2px;
}

.kb-oh-layout-stacked .kb-oh-times {
    padding-left: 0;
}

/* Status indicator */
.kb-oh-status {
    font-weight: 600;
    margin-bottom: 15px;
}

.kb-oh-status--open {
    color: #16a34a;
}

.kb-oh-status--closed {
    color: #dc2626;
}

/* Responsive adjustments for Opening Hours Widget */
@media (max-width: 767px) {
    .kb-opening-hours .kb-oh-day {
        min-width: 80px;
    }

    .kb-oh-layout-stacked .kb-oh-day {
        min-width: auto;
    }
}

/* Mobile phone - switch to stacked layout for better readability */
@media (max-width: 480px) {
    .kb-oh-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kb-opening-hours .kb-oh-day {
        min-width: auto;
        margin-bottom: 4px;
    }

    .kb-oh-times {
        padding-left: 0;
        width: 100%;
    }

    .kb-oh-times .kb-oh-time {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }

    .kb-oh-time-open,
    .kb-oh-time-close {
        min-width: auto;
    }

    .kb-oh-time-sep {
        width: 2ch;
        flex-shrink: 0;
    }

    .kb-oh-time-suffix {
        margin-right: 0;
    }
}

/* ==========================================================================
   Social Media Widget
   ========================================================================== */

.kb-social-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.kb-social-item {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.kb-social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kb-social-link:hover {
    text-decoration: none;
}

.kb-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.kb-social-icon i {
    display: inline-block;
    line-height: 1;
}

.kb-social-icon svg {
    display: inline-block;
    vertical-align: middle;
}

.kb-social-label {
    display: inline-block;
    margin-left: 8px;
    transition: color 0.3s ease;
}

/* Icon Styles */
.kb-social-style-default .kb-social-icon {
    padding: 0;
    background: transparent;
    border: none;
}

.kb-social-style-framed .kb-social-icon {
    border-style: solid;
    border-width: 2px;
    background: transparent;
}

.kb-social-style-stacked .kb-social-icon {
    border: none;
}

/* Icon Shapes */
.kb-social-shape-square .kb-social-icon {
    border-radius: 0;
}

.kb-social-shape-rounded .kb-social-icon {
    border-radius: 6px;
}

.kb-social-shape-circle .kb-social-icon {
    border-radius: 50%;
}

/* Stacked style - ensure white icon on colored background */
.kb-social-style-stacked .kb-social-icon i,
.kb-social-style-stacked .kb-social-icon svg {
    color: #ffffff;
    fill: #ffffff;
}

/* Hover Animations */
.kb-social-hover-grow .kb-social-item:hover .kb-social-icon {
    transform: scale(1.1);
}

.kb-social-hover-shrink .kb-social-item:hover .kb-social-icon {
    transform: scale(0.9);
}

.kb-social-hover-float .kb-social-item:hover .kb-social-icon {
    transform: translateY(-4px);
}

.kb-social-hover-sink .kb-social-item:hover .kb-social-icon {
    transform: translateY(4px);
}

/* No data message (editor only) */
.kb-social-no-data {
    color: #888;
    font-style: italic;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

/* Responsive adjustments for Social Media Widget */
@media (max-width: 767px) {
    .kb-social-list {
        gap: 10px;
    }
}

/* ==========================================================================
   FAQ Widget
   ========================================================================== */

.kb-faq-title {
    margin: 0 0 20px 0;
    padding: 0;
}

.kb-faq-accordion {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.kb-faq-item {
    display: block;
    width: 100%;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.kb-faq-item:last-child {
    margin-bottom: 0;
}

.kb-faq-question {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    margin: 0;
    background-color: var(--e-global-color-primary, #6ec1e4);
    border: none;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.kb-faq-question:hover {
    filter: brightness(0.9);
}

.kb-faq-question:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.kb-faq-question-text {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

/* Reset heading styles inside button */
.kb-faq-question-text,
button.kb-faq-question h2.kb-faq-question-text,
button.kb-faq-question h3.kb-faq-question-text,
button.kb-faq-question h4.kb-faq-question-text,
button.kb-faq-question h5.kb-faq-question-text,
button.kb-faq-question h6.kb-faq-question-text {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    background: none;
    border: none;
}

.kb-faq-icon-wrapper {
    display: inline-flex;
    flex-shrink: 0;
}

.kb-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.kb-faq-icon--left {
    margin-right: 10px;
}

.kb-faq-icon--right {
    margin-left: 10px;
}

.kb-faq-icon i {
    display: inline-block;
    line-height: 1;
    color: #ffffff;
}

.kb-faq-icon svg {
    display: inline-block;
    vertical-align: middle;
    fill: #ffffff;
}

/* Icon visibility toggle */
.kb-faq-item .kb-faq-icon-open {
    display: none;
}

.kb-faq-item .kb-faq-icon-closed {
    display: inline-flex;
}

.kb-faq-item--active .kb-faq-icon-open {
    display: inline-flex;
}

.kb-faq-item--active .kb-faq-icon-closed {
    display: none;
}

.kb-faq-answer {
    padding: 15px 20px;
    background-color: #ffffff;
    border-top: none;
}

.kb-faq-answer[hidden] {
    display: none;
}

.kb-faq-answer-content {
    line-height: 1.6;
}

.kb-faq-answer-content p:first-child {
    margin-top: 0;
}

.kb-faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* No data message (editor only) */
.kb-faq-no-data {
    color: #888;
    font-style: italic;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

/* Editor notice for FAQ data source */
.kb-faq-editor-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #856404;
}

.kb-faq-editor-notice strong {
    color: #664d03;
}

.kb-faq-editor-notice code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Responsive adjustments for FAQ Widget */
@media (max-width: 767px) {
    .kb-faq-question {
        padding: 12px 15px;
    }

    .kb-faq-answer {
        padding: 12px 15px;
    }
}
