:root,
.azw-theme-light {
    --azw-accent-color: #211996;
    --azw-primary-color: var(--azw-accent-color);
    --azw-secondary-color: #4338ca;
    --azw-text-color-light: #374151;
    --azw-text-color-dark: #ffffff;
    --azw-border-color: #e5e7eb;
    --azw-background-color: #ffffff;
    --azw-widget-max-width: 100%;


    --azw-text-color: #4b5563;

    --azw-muted-text-color: #acadaf;

    --azw-border-light-color: #d1d5db;
    --azw-surface-muted-color: #f9fafb;
    --azw-heading-color: #111827;
    --azw-featured-base-color: #1d4ed8;
    --azw-on-dark-color: #ffffff;
    --azw-on-light-color: #111827;
    --azw-error-color: #b91c1c;


    --azw-card-width: 270px;
    --azw-card-height: 440px;
    --azw-card-body-height: auto;
    --azw-card-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    --azw-card-hover-shadow: 0 20px 32px rgba(37, 99, 235, 0.15);
    --azw-card-border-width: 3px;
    --azw-card-border-color: var(--azw-border-color);
    --azw-card-border-color-hover: var(--azw-accent-color);
    --azw-card-background-color: var(--azw-background-color);




    --azw-card-divider-color: #e5e7eb;
    --azw-card-description-color: #4b5563;
    --azw-card-section-title-color: #0b1c3f;
    --azw-card-body-text-color: #4b5563;


    --azw-card-tag-background-color: #eef2ff;
    --azw-card-tag-text-color: #4338ca;
    --azw-card-tag-text-size: 12px;

    --azw-badge-background-color: var(--azw-accent-color);
    --azw-badge-border-color: var(--azw-accent-color);
    --azw-badge-width: 150px;
    --azw-badge-text-color: #ffffff;
    --azw-badge-text-size: 12px;



    --azw-price-cycle-color: #6b7280;


    --azw-price-background-color: var(--azw-accent-color);
    --azw-price-value-color: var(--azw-on-dark-color);

    --az-card-button-background-color: var(--azw-primary-color);
    --az-card-button-text-color: var(--azw-on-dark-color);
    --az-card-button-border-color: var(--azw-border-color);
    --az-card-button-background-color-hover: var(--azw-secondary-color);
    --az-card-button-text-color-hover: var(--azw-on-light-color);
    --az-card-button-border-color-hover: var(--azw-border-color);
    --azw-card-footer-min-height: 25px;
    --azw-card-button-shadow: 0 10px 16px rgba(17, 24, 39, 0.12);
    --azw-card-button-shadow-hover: 0 16px 24px rgba(17, 24, 39, 0.18);


}

.azw-theme-dark {
    color-scheme: dark;
    --azw-accent-color: #6366f1;
    --azw-primary-color: #4f46e5;
    --azw-secondary-color: #818cf8;
    --azw-text-color-light: #e5e7eb;
    --azw-text-color-dark: #0f172a;
    --azw-border-color: #1f2937;
    --azw-background-color: transparent;
    --azw-widget-max-width: 1200px;
    --azw-text-color: #e2e8f0;
    --azw-muted-text-color: #94a3b8;
    --azw-border-light-color: #334155;
    --azw-surface-muted-color: #1e293b;
    --azw-heading-color: #f8fafc;
    --azw-featured-base-color: #6366f1;
    --azw-on-dark-color: #ffffff;
    --azw-on-light-color: #0f172a;
    --azw-error-color: #f87171;
    --azw-card-shadow: 0 12px 32px rgba(15, 23, 42, 0.6);
    --azw-card-hover-shadow: 0 24px 48px rgba(79, 70, 229, 0.45);
    --azw-card-border-width: 2px;
    --azw-card-border-color: #1e293b;
    --azw-card-border-color-hover: #4f46e5;
    --azw-card-background-color: #111c2e;
    --azw-card-width: 320px;
    --azw-card-tag-background-color: rgba(99, 102, 241, 0.12);
    --azw-card-tag-text-color: #c7d2fe;
    --azw-card-divider-color: rgba(148, 163, 184, 0.45);
    --azw-card-description-color: #e2e8f0;
    --azw-card-section-title-color: #94a3b8;
    --azw-card-body-text-color: #e2e8f0;
    --azw-badge-background-color: rgba(99, 102, 241, 0.25);
    --azw-badge-border-color: #6366f1;
    --azw-badge-text-color: #e0e7ff;
    --azw-price-cycle-color: #cbd5f5;
    --azw-price-background-color: #4f46e5;
    --azw-price-value-color: #eef2ff;
    --az-card-button-background-color: #4f46e5;
    --az-card-button-text-color: var(--azw-on-dark-color);
    --az-card-button-border-color: #4f46e5;
    --az-card-button-background-color-hover: #6366f1;
    --az-card-button-text-color-hover: #ffffff;
    --az-card-button-border-color-hover: #818cf8;
    --azw-card-footer-min-height: 25px;
    --azw-card-button-shadow: 0 12px 20px rgba(15, 23, 42, 0.45);
    --azw-card-button-shadow-hover: 0 18px 28px rgba(15, 23, 42, 0.6);
}

.azw-widget-root {
    box-sizing: border-box;
    width: 100%;
    color: var(--azw-text-color);
    background-color: var(--azw-background-color);
    font-family: "Inter", "Segoe UI", sans-serif;
    border-radius: var(--azw-card-border-radius, 20px);
    padding: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.azw-widget-root.azw-theme-dark {
    color: var(--azw-text-color);
}

.azw-widget-surface {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    border-radius: 16px;
    width: 100%;
    background-color: transparent;
    color: var(--azw-text-color);
    box-shadow: var(--azw-card-shadow);
}

.azw-theme-dark .azw-widget-surface {
    box-shadow: var(--azw-card-shadow);
}

.azw-step-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-color: transparent;
}

.azw-step-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--azw-muted-text-color);
    font-size: 16px;
}

.azw-step-tab-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: var(--azw-widget-max-width, 1200px);
    justify-content: center;
    align-items: center;
    margin: auto auto;
    overflow-x: auto;
    padding: 3px;
    border-bottom: 1px solid var(--azw-border-light-color);
}

.azw-step-tab-button {
    padding: 8px 25px;
    border-radius: 9999px;
    border: 1px solid var(--azw-border-light-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background-color: var(--azw-surface-muted-color);
    color: var(--azw-secondary-color);
}

.azw-step-tab-button.is-active {
    border-color: var(--azw-primary-color);
    background-color: var(--azw-primary-color);
    color: var(--azw-on-dark-color);
}

.azw-step-panel-container {
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.azw-step-panel {
    width: 100%;
    max-width: var(--azw-widget-max-width, 1200px);
    margin: 0 auto;
}

.azw-group-description-container {
    text-align: center;
    margin-bottom: 16px;
    min-height: 35px;
}

.azw-group-header {
    font-size: 12px;
    font-weight: 500;
    color: var(--azw-heading-color);
    margin-bottom: 4px;
}

.azw-group-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
    color: var(--azw-heading-color);
}

.azw-group-footer-container {
    align-content: flex-end;
    display: flex;
    justify-content: flex-end;
}


.azw-group-footer {
    padding: 12px 16px;
    text-align: right;
    font-size: .65rem;
    color: var(--azw-muted-text-color);
}

.azw-group-footer a {
    color: var(--azw-muted-text-color);
    text-decoration: none;
}

.azw-group-container {
    margin-bottom: 32px;
    width: 100%;
}

.azw-group-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    padding: 16px 0;
}

.azw-group-card-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    flex: 0 1 50px;
}

/* ------------------------------------------------------------------
   REQUIRED KEYFRAMES (Copied and adjusted from example-2)
   ------------------------------------------------------------------ */
@keyframes rotate {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.azw-card {
    position: relative;
    height: var(--azw-card-height, 440px);
    width: var(--azw-card-width, 100%);
    max-width: var(--azw-card-width, 320px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* We move the padding and background logic to the ::after element */
    padding: var(--azw-card-border-width);
    /* Border surface is rendered via pseudo-elements sized by --azw-card-border-width */
    background-color: var(--azw-card-border-color);

    border-radius: var(--azw-card-border-radius, 20px);

    box-shadow: var(--azw-card-shadow);


    /* Remove static border */
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    isolation: isolate;
}

.azw-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--azw-card-border-color-hover, var(--azw-primary-color));
    transform: scale(0);
    transform-origin: top left;
    transition: transform 0.45s ease;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.azw-card::after {
    content: "";
    position: absolute;
    inset: var(--azw-card-border-width);
    border-radius: calc(var(--azw-card-border-radius, 20px) - var(--azw-card-border-width));
    background: var(--azw-card-background-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
}


.azw-card>* {
    position: relative;
    z-index: 2;
}

.azw-card:hover {
    /* Keep the shadow effect */
    box-shadow: var(--azw-card-hover-shadow);
}

.azw-card:hover::before,
.azw-card:focus-visible::before {
    transform: scale(1);
}

.azw-card-content {
    height: 100%;
    background-color: var(--azw-card-background-color);
    border-radius: calc(var(--azw-card-border-radius, 20px) - var(--azw-card-border-width));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.azw-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.azw-card-top-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.azw-card-tag {
    align-self: flex-start;
    color: var(--azw-card-tag-text-color);
    font-size: var(--azw-card-tag-text-size, 12px);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.azw-card-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--azw-heading-color);
    line-height: 1.3;
}

.azw-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--azw-badge-width);
    padding: 6px 14px;
    background: var(--azw-badge-background-color);
    border: 1px solid var(--azw-badge-border-color);
    color: var(--azw-badge-text-color);
    font-size: var(--azw-badge-text-size, 12px);
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 4px 12px var(--azw-badge-border-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.azw-card-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
}

.azw-card-price {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--azw-heading-color);
}

.azw-card-price-cycle {
    font-size: 12px;
    font-weight: 500;
    color: var(--azw-price-cycle-color);
}

.azw-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--azw-card-description-color);
}

.azw-card-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--azw-card-divider-color), transparent);
    margin-bottom: 12px;
}

.azw-card-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 12px;
}

.azw-card-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--azw-card-section-title-color);
}

.azw-card-section-title::before,
.azw-card-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--azw-card-divider-color);
    opacity: 0.6;
}

.azw-card-body {
    color: var(--azw-card-body-text-color);
    font-size: 15px;
    line-height: 1.6;
}

.azw-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.azw-card-body li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.azw-card-body li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: var(--azw-accent-color);
    opacity: 0.7;
    flex-shrink: 0;
}

.azw-card-body p {
    margin: 0;
}

.azw-card-button-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    align-items: stretch;
    gap: 16px;
    margin-top: auto;
}

.azw-card-button {
    width: 100%;
    padding: 14px 18px;
    border-radius: 9999px;
    background: linear-gradient(180deg, var(--az-card-button-background-color) 0%, var(--az-card-button-background-color-hover) 100%);
    color: var(--az-card-button-text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--az-card-button-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--azw-card-button-shadow);
}

.azw-card-button:hover,
.azw-card-button:focus {
    transform: translateY(-2px);
    box-shadow: var(--azw-card-button-shadow-hover);
}

.azw-card-footer {
    display: var(--azw-card-footer-display, flex);
    min-height: var(--azw-card-footer-min-height, auto);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.azw-card-footer-note {
    font-size: 12px;
    color: var(--azw-muted-text-color);
    text-align: center;
}


.azw-widget-loading,
.azw-widget-empty,
.azw-widget-error {
    text-align: center;
    font-size: 16px;
    color: var(--azw-muted-text-color);
    padding: 24px;
}

.azw-widget-error {
    color: var(--azw-error-color);
}