/*
 * AuthorWings AI — Front Styles
 * Every visible color is driven by a CSS variable.
 * Fallbacks below match the AuthorWings.com brand palette.
 * Admins can override every variable from AuthorWings AI → Settings.
 */

.awg-aig{
    border:1px solid var(--awg-border, #e8decf);
    border-radius:var(--awg-radius, 14px);
    padding:var(--awg-pad, 16px);
    margin:var(--awg-margin, 12px) 0;
    background:var(--awg-bg, #ffffff);
    color:var(--awg-text, #10243c);
}
.awg-aig__title{display:flex; align-items:center; gap:8px; font-weight:800; font-size:18px; margin-bottom:8px;}
.awg-aig__title-icon{color:var(--awg-accent, #7e9374);}
.awg-aig__desc{margin-bottom:12px; color:var(--awg-text, #10243c); text-align:left;}
.awg-aig__field{margin-bottom:12px;}
.awg-aig__label{display:flex; align-items:center; gap:6px; font-weight:650; margin-bottom:6px;}
.awg-aig__icon{display:inline-flex; align-items:center; justify-content:center; line-height:1;}
.awg-aig__field-icon{color:var(--awg-accent, #7e9374); margin-right:6px;}
.awg-aig__req{color:var(--awg-required, #c97a5e);}
.awg-aig .awg-aig__input{
    width:100%;
    padding:10px 12px;
    border:1px solid var(--awg-border, #e8decf);
    border-radius:10px;
    background:var(--awg-input-bg, #fbf8f2);
    color:var(--awg-text, #10243c);
}
.awg-aig__choices{display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px 16px;}
.awg-aig__choice-row{display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%; cursor:pointer; padding:6px 10px; border:1px solid var(--awg-border, #e8decf); border-radius:8px; background:var(--awg-input-bg, #fbf8f2); transition:border-color 0.2s ease, background-color 0.2s ease;}
.awg-aig__choice-row:hover{border-color:var(--awg-accent, #7e9374); background:rgba(126, 147, 116, 0.06);}
.awg-aig__choice-row:has(:checked){border-color:var(--awg-accent, #7e9374); background:rgba(126, 147, 116, 0.10);}
.awg-aig__choice{width:16px; height:16px; padding:0; border:0; border-radius:0; background:transparent; color:inherit; margin:0; flex:0 0 16px; accent-color:var(--awg-accent, #7e9374);}
.awg-aig__choice-row span{display:inline-block; font-size:14px;}
.awg-aig__actions{display:flex; gap:12px; align-items:center; margin-top:10px;}
.awg-aig__btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:var(--awg-btn-pad-y, 10px) var(--awg-btn-pad-x, 14px);
    border-radius:var(--awg-btn-radius, 10px);
    border:1px solid var(--awg-btn-border, #10243c);
    background:var(--awg-btn-bg, #10243c);
    color:var(--awg-btn-text, #ffffff);
    cursor:pointer;
}
.awg-aig__button-icon{color:inherit;}
.awg-aig__status{font-size:13px; color:var(--awg-text, #10243c);}
.awg-aig__status.is-error{color:var(--awg-required, #c97a5e);}
.awg-aig__note{margin-top:10px; font-size:12px; line-height:1.5; color:var(--awg-text, #10243c); text-align:left;}
.awg-aig__result{
    margin-top:14px;
    border-top:1px solid var(--awg-border, #e8decf);
    padding-top:12px;
}
.awg-aig__result-head{display:flex; justify-content:flex-start; align-items:center; gap:8px; margin-bottom:8px;}
.awg-aig__result-actions{display:flex; gap:8px; flex-wrap:wrap;}
.awg-aig__result-actions--bottom{margin-top:10px;}
.awg-aig__copy,
.awg-aig__download,
.awg-aig__clear,
.awg-aig__regenerate{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid var(--awg-action-btn-border, var(--awg-text, #10243c));
    background:var(--awg-action-btn-bg, var(--awg-text, #10243c));
    border-radius:10px;
    padding:6px 10px;
    cursor:pointer;
    color:var(--awg-action-btn-text, #ffffff);
}
.awg-aig__action-icon{display:inline-flex; align-items:center; justify-content:center; line-height:1;}
.awg-aig__output{
    background:var(--awg-output-bg, #ffffff);
    border:1px solid var(--awg-border, #e8decf);
    border-radius:12px;
    padding:12px;
    overflow:auto;
    white-space:pre-wrap;
    color:var(--awg-text, #10243c);
}

/* placeholder */
.awg-aig .awg-aig__input::placeholder {
    font-size: 14px;
    font-weight: 400;
    color: var(--awg-placeholder, #8b7e6f);
    opacity: 1;
}

/* primary button states + transition */
.awg-aig__btn {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease,
        opacity 0.2s ease;
}

.awg-aig__btn:hover {
    background: var(--awg-btn-hover-bg, var(--awg-text, #10243c));
    border-color: var(--awg-btn-hover-bg, var(--awg-text, #10243c));
    color: var(--awg-btn-hover-text, var(--awg-btn-text, #ffffff));
}

.awg-aig__btn:focus,
.awg-aig__btn:focus-visible {
    outline: none;
    background: var(--awg-btn-hover-bg, var(--awg-text, #10243c));
    border-color: var(--awg-btn-hover-bg, var(--awg-text, #10243c));
    color: var(--awg-btn-hover-text, var(--awg-btn-text, #ffffff));
    box-shadow: 0 0 0 3px var(--awg-focus-ring, rgba(26, 115, 232, 0.22));
}

.awg-aig__btn:active {
    background: var(--awg-btn-active-bg, var(--awg-accent, #7e9374));
    border-color: var(--awg-btn-active-bg, var(--awg-accent, #7e9374));
    color: var(--awg-btn-hover-text, var(--awg-btn-text, #ffffff));
    box-shadow: 0 0 0 2px var(--awg-focus-ring, rgba(18, 86, 196, 0.15)) inset;
    transform: translateY(1px);
}

.awg-aig__btn:disabled,
.awg-aig__btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* small action buttons */
.awg-aig__copy,
.awg-aig__download,
.awg-aig__clear,
.awg-aig__regenerate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    line-height: 1.2;
    background: var(--awg-action-btn-bg, var(--awg-text, #10243c));
    border: 1px solid var(--awg-action-btn-border, var(--awg-text, #10243c));
    border-radius: 10px;
    padding: 5px 8px;
    color: var(--awg-action-btn-text, #ffffff);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease;
}

.awg-aig__copy:hover,
.awg-aig__download:hover,
.awg-aig__clear:hover,
.awg-aig__regenerate:hover {
    background: var(--awg-action-btn-hover-bg, var(--awg-accent, #7e9374));
    border-color: var(--awg-action-btn-hover-bg, var(--awg-accent, #7e9374));
    color: var(--awg-action-btn-hover-text, var(--awg-action-btn-text, #ffffff));
}

.awg-aig__copy:focus,
.awg-aig__download:focus,
.awg-aig__clear:focus,
.awg-aig__regenerate:focus,
.awg-aig__copy:focus-visible,
.awg-aig__download:focus-visible,
.awg-aig__clear:focus-visible,
.awg-aig__regenerate:focus-visible {
    outline: none;
    background: var(--awg-action-btn-hover-bg, var(--awg-accent, #7e9374));
    border-color: var(--awg-action-btn-hover-bg, var(--awg-accent, #7e9374));
    color: var(--awg-action-btn-hover-text, var(--awg-action-btn-text, #ffffff));
    box-shadow: 0 0 0 3px var(--awg-focus-ring, rgba(26, 115, 232, 0.18));
}

.awg-aig__copy:active,
.awg-aig__download:active,
.awg-aig__clear:active,
.awg-aig__regenerate:active {
    background: var(--awg-btn-active-bg, var(--awg-accent, #7e9374));
    border-color: var(--awg-btn-active-bg, var(--awg-accent, #7e9374));
    color: var(--awg-action-btn-hover-text, var(--awg-action-btn-text, #ffffff));
    transform: translateY(1px);
}

/* v5.4.14: disabled state for action buttons. While a generation is in
   flight, the JS sets `disabled` on Copy/Download/Clear/Regenerate so
   visitors can't trigger them against an empty/in-progress result. This
   rule is placed AFTER :hover/:focus/:active so it wins on the cascade
   when an element matches both (e.g. hovering a disabled button). */
.awg-aig__copy:disabled,
.awg-aig__copy[disabled],
.awg-aig__download:disabled,
.awg-aig__download[disabled],
.awg-aig__clear:disabled,
.awg-aig__clear[disabled],
.awg-aig__regenerate:disabled,
.awg-aig__regenerate[disabled],
.awg-aig__copy:disabled:hover,
.awg-aig__download:disabled:hover,
.awg-aig__clear:disabled:hover,
.awg-aig__regenerate:disabled:hover,
.awg-aig__copy:disabled:focus,
.awg-aig__download:disabled:focus,
.awg-aig__clear:disabled:focus,
.awg-aig__regenerate:disabled:focus {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--awg-action-btn-bg, var(--awg-text, #10243c));
    border-color: var(--awg-action-btn-border, var(--awg-text, #10243c));
    color: var(--awg-action-btn-text, #ffffff);
}

/* action button icon sizing */
.awg-aig__copy .dashicons,
.awg-aig__download .dashicons,
.awg-aig__clear .dashicons,
.awg-aig__regenerate .dashicons,
.awg-aig__copy .awg-aig__action-icon,
.awg-aig__download .awg-aig__action-icon,
.awg-aig__clear .awg-aig__action-icon,
.awg-aig__regenerate .awg-aig__action-icon {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 13px;
}


.awg-aig__result{
    margin-top:16px;
    padding-top:16px;
}

.awg-aig__result-head{
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.awg-aig__result-head strong{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:22px;
    font-weight:800;
    line-height:1.25;
    color:var(--awg-text, #10243c);
}

.awg-aig__output{
    background:linear-gradient(180deg, var(--awg-output-gradient-top, #ffffff) 0%, var(--awg-output-gradient-bot, #fbf8f2) 100%);
    border:1px solid var(--awg-border, #e8decf);
    border-radius:16px;
    padding:18px;
    overflow:auto;
    white-space:normal;
    color:var(--awg-text, #10243c);
    box-shadow:0 10px 26px var(--awg-shadow, rgba(3, 12, 23, 0.06));
    text-align:left;
}

/* Defensive left-align on every text child — some themes apply
   text-align:center via descendant selectors (e.g. ".entry-content p")
   that win over a parent-only rule. Spelling it out per element type
   guarantees the result reads as a left-aligned column regardless of
   the host theme. Same approach as the v5.3.4 description fix. */
.awg-aig__output p,
.awg-aig__output li,
.awg-aig__output ul,
.awg-aig__output ol,
.awg-aig__output h1,
.awg-aig__output h2,
.awg-aig__output h3,
.awg-aig__output h4,
.awg-aig__output blockquote,
.awg-aig__result-item-content,
.awg-aig__result-item-content p,
.awg-aig__result-item-content li{
    text-align:left;
}

.awg-aig__output.is-formatted{
    font-size:17px;
    line-height:1.75;
}

.awg-aig__output > *:first-child{
    margin-top:0;
}

.awg-aig__output > *:last-child{
    margin-bottom:0;
}

.awg-aig__output h2,
.awg-aig__output h3,
.awg-aig__output h4{
    margin:0 0 10px;
    color:var(--awg-text, #10243c);
    line-height:1.3;
}

.awg-aig__output h2{
    font-size:22px;
    font-weight:800;
}

.awg-aig__output h3{
    font-size:19px;
    font-weight:750;
}

.awg-aig__output h4{
    font-size:17px;
    font-weight:700;
}

.awg-aig__output p{
    margin:0 0 14px;
}

.awg-aig__output ul,
.awg-aig__output ol{
    margin:0 0 16px 22px;
    padding:0;
}

.awg-aig__output li{
    margin:0 0 8px;
}

.awg-aig__output hr{
    border:0;
    border-top:1px solid var(--awg-border, #e8decf);
    margin:18px 0;
}

.awg-aig__output code,
.awg-aig__output pre{
    font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.awg-aig__output pre{
    margin:0 0 14px;
    background:var(--awg-code-bg, #f2eae0);
    border:1px solid var(--awg-border, #e8decf);
    border-radius:12px;
    padding:14px;
    overflow:auto;
    white-space:pre-wrap;
}

.awg-aig__result-actions--bottom{
    margin-top:12px;
    padding-top:2px;
}

.awg-aig__cta{
    margin-top:14px;
    padding:12px 14px;
    border-top:1px solid var(--awg-border, #e8decf);
    font-size:14px;
    line-height:1.55;
    color:var(--awg-text, #10243c);
}
.awg-aig__cta a{
    color:var(--awg-accent, #7e9374);
    text-decoration:underline;
    font-weight:600;
}
.awg-aig__cta a:hover,
.awg-aig__cta a:focus{
    color:var(--awg-btn-bg, #10243c);
}

.awg-aig__result-actions .awg-aig__copy,
.awg-aig__result-actions .awg-aig__download,
.awg-aig__result-actions .awg-aig__clear,
.awg-aig__result-actions .awg-aig__regenerate{
    min-height:34px;
}

.awg-aig__result.is-busy .awg-aig__output{
    opacity:1;
}

/* When a generation is in flight, hide any pre-existing rendered output
   (from a previous run) so only the skeleton placeholder is visible.
   The skeleton itself is the single child that stays visible. */
.awg-aig__result.is-busy .awg-aig__output > *:not(.awg-aig__skeleton){
    display:none !important;
}

.awg-aig__skeleton{
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* "Thinking" banner — sits at the top of the skeleton with a left
   accent stripe so it's actually visible against the busy page
   instead of reading as a tiny faint label. */
.awg-aig__skeleton-thinking{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:500;
    color:var(--awg-text, #10243c);
    background:var(--awg-thinking-bg, rgba(126, 147, 116, 0.08));
    border-left:3px solid var(--awg-accent, #7e9374);
    padding:10px 12px;
    border-radius:8px;
    margin-bottom:6px;
    min-height:20px;
}

.awg-aig__skeleton-thinking-icon{
    width:12px;
    height:12px;
    border-radius:50%;
    background:var(--awg-accent, #7e9374);
    flex:0 0 12px;
    animation:awg-aig-thinking-pulse 1.4s ease-in-out infinite;
}

.awg-aig__skeleton-thinking-text{
    transition:opacity 0.25s ease;
    flex:1 1 auto;
}

.awg-aig__skeleton-thinking-text.is-fading{
    opacity:0;
}

.awg-aig__skeleton-thinking-dots{
    display:inline-flex;
    gap:3px;
    flex:0 0 auto;
}

.awg-aig__skeleton-thinking-dots span{
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--awg-accent, #7e9374);
    animation:awg-aig-dot-bounce 1.2s ease-in-out infinite;
}

.awg-aig__skeleton-thinking-dots span:nth-child(2){animation-delay:0.15s;}
.awg-aig__skeleton-thinking-dots span:nth-child(3){animation-delay:0.3s;}

/* Card-shaped skeleton — mirrors .awg-aig__result-item geometry so
   the loader predicts the actual shape of the upcoming list. */
.awg-aig__skeleton-cards{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.awg-aig__skeleton-card{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:12px 14px;
    border:1px solid var(--awg-border, #e8decf);
    border-radius:14px;
    background:var(--awg-bg, #ffffff);
}

.awg-aig__skeleton-card-badge{
    width:24px;
    height:24px;
    border-radius:50%;
    background:var(--awg-badge-bg, #e1e8d8);
    flex:0 0 24px;
    margin-top:2px;
}

.awg-aig__skeleton-card-lines{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

.awg-aig__skeleton-line{
    height:11px;
    border-radius:6px;
    background:linear-gradient(
        90deg,
        rgba(0,0,0,0.06) 0%,
        rgba(0,0,0,0.13) 50%,
        rgba(0,0,0,0.06) 100%
    );
    background-size:200% 100%;
    animation:awg-aig-shimmer 1.4s linear infinite;
}

/* Dim/disable the auxiliary action buttons (Copy, Download, Clear)
   while a generation is in flight — there's no result to copy or
   clear yet. Only Regenerate stays interactive (it owns its own
   in-button spinner state). */
.awg-aig__result.is-busy .awg-aig__copy,
.awg-aig__result.is-busy .awg-aig__download,
.awg-aig__result.is-busy .awg-aig__clear{
    opacity:0.4;
    pointer-events:none;
    cursor:not-allowed;
}

/* Fade the post-result CTA and the (sibling) rating widget while
   generating, so the page visually centers on the in-progress work
   instead of asking the user to rate a tool that's still working. */
.awg-aig__result.is-busy .awg-aig__cta,
.awg-aig.is-generating .awg-aig__rating-wrap{
    opacity:0.35;
    pointer-events:none;
    transition:opacity 0.25s ease;
}

@keyframes awg-aig-shimmer{
    0%{background-position:200% 0;}
    100%{background-position:-200% 0;}
}

@keyframes awg-aig-thinking-pulse{
    0%,100%{transform:scale(1);opacity:0.85;}
    50%{transform:scale(1.3);opacity:1;}
}

@keyframes awg-aig-dot-bounce{
    0%,80%,100%{transform:translateY(0);opacity:0.4;}
    40%{transform:translateY(-3px);opacity:1;}
}

@media (prefers-reduced-motion: reduce){
    .awg-aig__skeleton-line,
    .awg-aig__skeleton-thinking-icon,
    .awg-aig__skeleton-thinking-dots span{
        animation:none !important;
    }
    .awg-aig__skeleton-line{
        background:rgba(0,0,0,0.08);
    }
}

@media (max-width: 768px) {
    .awg-aig__output{
        padding:15px;
        border-radius:14px;
    }

    .awg-aig__output.is-formatted{
        font-size:16px;
        line-height:1.65;
    }

    .awg-aig__result-head strong{
        font-size:20px;
    }
}

@media (max-width: 480px) {
    .awg-aig__choices{grid-template-columns:repeat(2, 1fr); gap:6px 8px;}
    .awg-aig__choice-row{padding:5px 8px; border-radius:7px;}
    .awg-aig__result-actions{
        display:flex;
        flex-wrap:nowrap;
        gap:6px;
        align-items:stretch;
    }

    .awg-aig__copy,
    .awg-aig__download,
    .awg-aig__clear,
    .awg-aig__regenerate{
        flex:1 1 0;
        min-width:0;
        padding:6px 4px;
        font-size:10px;
        line-height:1.15;
        border-radius:9px;
        flex-direction:column;
        gap:4px;
        text-align:center;
        white-space:normal;
    }

    .awg-aig__copy .dashicons,
    .awg-aig__download .dashicons,
    .awg-aig__clear .dashicons,
    .awg-aig__regenerate .dashicons,
    .awg-aig__copy .awg-aig__action-icon,
    .awg-aig__download .awg-aig__action-icon,
    .awg-aig__clear .awg-aig__action-icon,
    .awg-aig__regenerate .awg-aig__action-icon{
        font-size:14px;
        width:14px;
        height:14px;
        line-height:14px;
        flex:0 0 14px;
    }

    .awg-aig__copy > span:last-child,
    .awg-aig__download > span:last-child,
    .awg-aig__clear > span:last-child,
    .awg-aig__regenerate > span:last-child{
        display:block;
        width:100%;
        overflow-wrap:anywhere;
    }

    .awg-aig__output{
        padding:13px;
    }

    .awg-aig__output h2{
        font-size:20px;
    }

    .awg-aig__output h3{
        font-size:18px;
    }
}


.awg-aig__result-head-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:999px;
    background:linear-gradient(180deg, var(--awg-accent, #7e9374) 0%, var(--awg-btn-active-bg, #0a1a2d) 100%);
    color:var(--awg-btn-text, #ffffff);
    box-shadow:0 8px 20px var(--awg-focus-ring, rgba(26, 115, 232, 0.22));
}

.awg-aig__result-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin:0 0 16px;
}

.awg-aig__result-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 14px;
    border:1px solid var(--awg-border, #e8decf);
    border-radius:14px;
    background:var(--awg-bg, #ffffff);
    box-shadow:0 8px 22px var(--awg-shadow, rgba(3, 12, 23, 0.05));
    opacity:0;
    transform:translateY(8px);
    animation:awg-aig-card-rise 0.5s ease forwards;
    transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Staggered entrance — each card animates in 70ms after the previous
   one. nth-child rules up to 20 cover most realistic list sizes;
   anything beyond 20 just appears with the final delay, which is
   fine — by item 20 the eye is already tracking the rhythm. */
.awg-aig__result-item:nth-child(1){animation-delay:0s;}
.awg-aig__result-item:nth-child(2){animation-delay:0.07s;}
.awg-aig__result-item:nth-child(3){animation-delay:0.14s;}
.awg-aig__result-item:nth-child(4){animation-delay:0.21s;}
.awg-aig__result-item:nth-child(5){animation-delay:0.28s;}
.awg-aig__result-item:nth-child(6){animation-delay:0.35s;}
.awg-aig__result-item:nth-child(7){animation-delay:0.42s;}
.awg-aig__result-item:nth-child(8){animation-delay:0.49s;}
.awg-aig__result-item:nth-child(9){animation-delay:0.56s;}
.awg-aig__result-item:nth-child(10){animation-delay:0.63s;}
.awg-aig__result-item:nth-child(11){animation-delay:0.70s;}
.awg-aig__result-item:nth-child(12){animation-delay:0.77s;}
.awg-aig__result-item:nth-child(13){animation-delay:0.84s;}
.awg-aig__result-item:nth-child(14){animation-delay:0.91s;}
.awg-aig__result-item:nth-child(15){animation-delay:0.98s;}
.awg-aig__result-item:nth-child(16){animation-delay:1.05s;}
.awg-aig__result-item:nth-child(17){animation-delay:1.12s;}
.awg-aig__result-item:nth-child(18){animation-delay:1.19s;}
.awg-aig__result-item:nth-child(19){animation-delay:1.26s;}
.awg-aig__result-item:nth-child(n+20){animation-delay:1.33s;}

.awg-aig__result-item:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(126, 147, 116, 0.18);
    border-color:var(--awg-accent, #7e9374);
}

@keyframes awg-aig-card-rise{
    to{opacity:1;transform:translateY(0);}
}

@media (prefers-reduced-motion: reduce){
    .awg-aig__result-item{
        opacity:1;
        transform:none;
        animation:none;
        transition:none;
    }
    .awg-aig__result-item:hover{
        transform:none;
    }
}

.awg-aig__result-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:30px;
    height:30px;
    padding:0 8px;
    border-radius:999px;
    background:var(--awg-badge-bg, #e1e8d8);
    color:var(--awg-badge-text, var(--awg-accent, #7e9374));
    font-size:13px;
    font-weight:800;
    line-height:1;
    flex:0 0 auto;
}

.awg-aig__result-list--unordered .awg-aig__result-badge{
    font-size:18px;
}

.awg-aig__result-item-content{
    flex:1 1 auto;
    min-width:0;
}

.awg-aig__result-item-content > *:first-child{
    margin-top:0;
}

.awg-aig__result-item-content > *:last-child{
    margin-bottom:0;
}

@media (max-width: 480px) {
    .awg-aig__result-head-icon{
        width:30px;
        height:30px;
    }

    .awg-aig__result-item{
        gap:10px;
        padding:12px;
        border-radius:12px;
    }

    .awg-aig__result-badge{
        min-width:26px;
        height:26px;
        font-size:12px;
    }
}


/* Regenerate button layout tune */
.awg-aig__result-actions--bottom{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}

.awg-aig__regenerate .dashicons{
    font-size:15px;
    width:15px;
    height:15px;
}


.awg-aig__btn.is-loading,
.awg-aig__regenerate.is-loading{
    position:relative;
    pointer-events:none;
}

.awg-aig__btn.is-loading::after,
.awg-aig__regenerate.is-loading::after{
    content:"";
    width:14px;
    height:14px;
    border:2px solid currentColor;
    border-right-color:transparent;
    border-radius:50%;
    display:inline-block;
    flex:0 0 14px;
    animation:awg-aig-spin 0.7s linear infinite;
}

.awg-aig__btn.is-loading .awg-aig__button-icon,
.awg-aig__regenerate.is-loading .dashicons,
.awg-aig__regenerate.is-loading .awg-aig__action-icon{
    display:none;
}

@keyframes awg-aig-spin{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}
