
/* =========================================================
   Tooltip Icon – data-tooltip attribute
   IMPORTANT: dashicons uses ::before for the icon glyph,
   so we ONLY use ::after for the tooltip popup.
   ========================================================= */

/* =========================================================
   Tooltip Icon – Premium Redesign
   ========================================================= */

.gt-tooltip-icon {
    color: #a7aaad;
    cursor: help;
    vertical-align: middle;
    font-size: 24px !important;
    width: 26px;
    height: 26px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    text-align: center;
    margin: 0 6px;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-sizing: border-box;
    font-family: dashicons;
    text-decoration: none !important;
}

.gt-tooltip-icon:hover {
    color: #2271b1;
    transform: scale(1.2);
}

/* Tooltip popup — ::after only (::before is reserved for dashicons glyph) */
.gt-tooltip-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #2c3338;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    white-space: normal;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99999;
    pointer-events: none;
    text-align: left;
}

/* Arrow Tip */
.gt-tooltip-icon[data-tooltip]:hover::after,
.gt-tooltip-icon[data-tooltip]:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}



/* Cap features grid to 3 columns */
.gt-features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (min-width: 768px) {
    .gt-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .gt-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Prevent clipping in WP containers */
.gt-feature-group,
.gt-form-row,
.gt-field-group,
label.gt-checkbox-label {
    overflow: visible !important;
}

/* Mobile: bigger tap target */
@media (max-width: 782px) {
    .gt-tooltip-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 16px !important;
    }
    .gt-tooltip-icon[data-tooltip]::after {
        width: 200px;
        font-size: 12px;
    }
}
