/* Якщо весь блок є посиланням (тег <a>) */
a.wfh-el-info-box {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

a.wfh-el-info-box:hover, 
a.wfh-el-info-box:focus {
    text-decoration: none !important;
    color: var(--ib-btn-tc-h, #ffffff);
}

.wfh-el-info-box {
    display: flex;
    flex-direction: var(--ib-dir, row);
    align-items: var(--ib-align, flex-start);
    gap: var(--ib-gap, 15px);
    text-align: var(--ib-text-align, left);
    box-sizing: border-box;
    /*width: 100%;*/
}

.wfh-ib-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ib-icon-size, 40px) + (var(--ib-icon-pad, 0px) * 2));
    height: calc(var(--ib-icon-size, 40px) + (var(--ib-icon-pad, 0px) * 2));
    background: var(--ib-icon-bg, transparent);
    border: var(--ib-icon-border, none);
    border-radius: var(--ib-icon-wrap-rad, 0);
    overflow: var(--ib-icon-overflow, visible); 
}

.wfh-ib-icon-svg {
    display: block;
    flex-shrink: 0;
    width: var(--ib-icon-size, 40px);
    height: var(--ib-icon-size, 40px);
    background-color: var(--ib-svg-c, currentColor);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.3s ease;
}

.wfh-ib-icon-img {
    display: block;
    width: var(--ib-icon-size, 40px);
    height: var(--ib-icon-size, 40px);
    object-fit: contain;
}

.wfh-ib-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--ib-content-gap, 5px);
}

.wfh-el-info-box[style*="--ib-dir: column;"] .wfh-ib-content-wrapper {
    align-items: center;
}

.wfh-ib-title {
    margin: 0;
    padding: 0;
    color: var(--ib-title-c, #333);
    text-transform: var(--ib-title-tt, none);
    font-size: var(--ib-title-fs, 18px);
    font-family: var(--ib-title-ff, inherit);
    font-weight: var(--ib-title-fw, 600);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.wfh-ib-desc {
    margin: 0;
    padding: 0;
    color: var(--ib-desc-c, #666);
    text-transform: var(--ib-desc-tt, none);
    font-size: var(--ib-desc-fs, 14px);
    font-family: var(--ib-desc-ff, inherit);
    font-weight: var(--ib-desc-fw, 400);
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Кнопка */
.wfh-ib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 0px;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 1; 
    
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    
    color: var(--ib-btn-tc, #ffffff);
    /* Розділили Background для максимальної сумісності */
    background-color: var(--ib-btn-bg-color, #2271b1);
    background-image: var(--ib-btn-bg-image, none);

    text-transform: var(--ib-btn-tt, none);
    font-size: var(--ib-btn-fs, 14px);
    font-family: var(--ib-btn-ff, inherit);
    font-weight: var(--ib-btn-fw, 600);
    padding: var(--ib-btn-pad, 8px 15px);
    border-radius: var(--ib-btn-rad, 4px);
}

.wfh-el-info-box[style*="--ib-text-align: center;"] .wfh-ib-btn {
    align-self: center;
}
.wfh-el-info-box[style*="--ib-text-align: right;"] .wfh-ib-btn {
    align-self: flex-end;
}

.wfh-ib-btn::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    
    /* Розділили Background Hover */
    background-color: var(--ib-btn-bg-color-h, #135e96);
    background-image: var(--ib-btn-bg-image-h, none);
    
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.wfh-ib-btn span {
    position: relative;
    z-index: 2;
}

.wfh-ib-btn:hover {
    color: var(--ib-btn-tc-h, #ffffff);
}

.wfh-ib-btn:hover::before {
    opacity: 1;
}

/* =========================================
   ЕФЕКТИ ПРИ НАВЕДЕННІ НА ВЕСЬ БЛОК
========================================= */
a.wfh-el-info-box:hover .wfh-ib-title {
    color: var(--ib-title-c-h, var(--ib-title-c, #333));
}

a.wfh-el-info-box:hover .wfh-ib-desc {
    color: var(--ib-desc-c-h, var(--ib-desc-c, #666));
}

a.wfh-el-info-box:hover .wfh-ib-icon-svg {
    background-color: var(--ib-svg-c-h, var(--ib-svg-c, currentColor));
}