/**
 * Service Why Choose Widget Styles
 * 
 * @package DM_WCAG_Core
 */

/* ====================================
   WHY CHOOSE CONTAINER
   ==================================== */
.dm-why-choose {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* List Layout */
.dm-why-choose--list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grid Layout */
.dm-why-choose--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ====================================
   WHY CHOOSE ITEM
   ==================================== */
.dm-why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    transition: transform 0.2s ease;
}

/* WCAG: Focus state */
/* Focus styles managed by global WCAG settings */

/* ====================================
   ICON
   ==================================== */
.dm-why-choose-item__icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #00FF88;
    margin-top: 2px;
    /* Align with text */
}

/* ====================================
   TEXT
   ==================================== */
.dm-why-choose-item__text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
}

/* ====================================
   WCAG: REDUCED MOTION
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .dm-why-choose-item {
        transition: none !important;
    }
}

/* Fallback when animations are disabled via WCAG plugin */
body.wcag-no-animations .dm-why-choose-item,
body.wcag-animations-disabled .dm-why-choose-item {
    transition: none !important;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media screen and (max-width: 768px) {
    .dm-why-choose--grid {
        grid-template-columns: 1fr;
    }

    .dm-why-choose-item__text {
        font-size: 15px;
    }

    .dm-why-choose-item__icon {
        font-size: 18px;
    }
}

/* ====================================
   ELEMENTOR EDITOR
   ==================================== */
.elementor-editor-active .dm-why-choose {
    min-height: 50px;
}