/* body {
    background-color: aquamarine;
}
h2.wp-block-heading {
    color: red !important;
} */


/* Pattern download button */
.virza-pattern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid currentColor;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    text-decoration: none;
}

.virza-pattern-btn__spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: virza-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes virza-spin {
    to { transform: rotate(360deg); }
}

.virza-pattern-btn--loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.virza-pattern-btn--loading .virza-pattern-btn__spinner {
    display: block;
}

.virza-pattern-btn--success {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    cursor: default;
}

.virza-pattern-btn--error {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* Astra-style child theme generator */
.virza-child-theme-generator-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.virza-child-theme-generator {
    border: 1px solid #d6dce3;
    border-radius: 3px;
    background: #fff;
    padding: 64px 66px;
    color: #18304a;
    box-sizing: border-box;
}

.virza-child-theme-generator__field {
    display: block;
    margin: 0 0 18px;
}

.virza-child-theme-generator label {
    display: block;
    margin: 0 0 9px;
    color: #18304a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.virza-child-theme-generator input[type="text"],
.virza-child-theme-generator input[type="url"],
.virza-child-theme-generator textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d6dce3;
    border-radius: 0;
    background: #fafafa;
    color: #394b5f;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 13px;
    box-sizing: border-box;
    box-shadow: none;
}

.virza-child-theme-generator textarea {
    min-height: 176px;
    resize: vertical;
}

.virza-child-theme-generator input:focus,
.virza-child-theme-generator textarea:focus {
    border-color: #8aa4c2;
    outline: 2px solid rgba(27, 111, 212, 0.16);
    outline-offset: 0;
}

.virza-child-theme-generator__hint {
    margin: 0 0 12px;
    color: #18304a;
    font-size: 11px;
    line-height: 1.4;
}

.virza-child-theme-generator__upload {
    border: 1px dashed #d6dce3;
    background: #fff;
    padding: 14px 15px;
}

.virza-child-theme-generator__upload input[type="file"] {
    width: 100%;
    color: #566475;
    font-size: 13px;
}

.virza-child-theme-generator__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
}

.virza-child-theme-generator__actions button {
    min-width: 116px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: #ffc000;
    color: #111;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 26px;
    text-align: center;
}

.virza-child-theme-generator__actions button:hover,
.virza-child-theme-generator__actions button:focus {
    background: #f4b400;
    color: #111;
}

.virza-child-theme-generator__actions span {
    color: #18304a;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .virza-child-theme-generator {
        padding: 32px 22px;
    }

    .virza-child-theme-generator__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* Child theme generator simple/advanced controls */
.virza-child-theme-generator--simple [data-virza-child-theme-advanced] {
    display: none;
}

.virza-child-theme-generator__actions .virza-child-theme-generator__toggle {
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #18304a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    padding: 0;
    text-align: left;
}

.virza-child-theme-generator__actions .virza-child-theme-generator__toggle:hover,
.virza-child-theme-generator__actions .virza-child-theme-generator__toggle:focus {
    background: transparent;
    color: #1b6fd4;
    outline: none;
}

.virza-child-theme-generator__error {
    margin: 10px 0 0;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.4;
}
