.fgfw-container {
    margin: 0 0 24px;
    color: var(--fgfw-text, #333);
    font-size: var(--fgfw-font-size, 14px);
    line-height: 1.5;
}

.fgfw-container.fgfw-empty {
    display: none;
}

.fgfw-title {
    margin: 0 0 12px;
    font-size: 1.25em;
}

.fgfw-button {
    display: inline-block;
    background: var(--fgfw-btn, #7f54b3);
    color: var(--fgfw-btn-text, #fff);
    border: none;
    border-radius: var(--fgfw-radius, 8px);
    padding: 8px 16px;
    font-size: 1em;
    cursor: pointer;
    transition: opacity .15s ease;
}

.fgfw-button:hover {
    opacity: .85;
    color: var(--fgfw-btn-text, #fff);
}

.fgfw-button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.fgfw-motivation {
    background: color-mix(in srgb, var(--fgfw-accent, #7f54b3) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--fgfw-accent, #7f54b3) 25%, #fff);
    border-radius: var(--fgfw-radius, 8px);
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 15px;
    text-align: left;
}

.fgfw-motivation-text {
    margin: 0;
}

.fgfw-motivation-plain {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.fgfw-totals-row td {
    padding-top: 10px;
    text-align: left;
}

.fgfw-relocated {
    padding: 12px 0;
    text-align: left;
}

.fgfw-container:not(:has(> *:not([hidden]))) {
    margin: 0;
}

.fgfw-progress {
    display: block;
    height: 5px;
    margin-top: 15px;
    background: var(--theme-border-color, rgba(0, 0, 0, .1));
    border-radius: 1px;
    overflow: hidden;
}

.fgfw-progress-fill {
    display: block;
    height: 100%;
    background: var(--fgfw-accent, #7f54b3);
    border-radius: inherit;
    transition: width .15s ease-in-out;
}

.fgfw-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--fgfw-accent, #7f54b3);
    color: #fff;
    font-size: var(--fgfw-font-size, 14px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}

.admin-bar .fgfw-header-bar {
    top: 32px;
}

.fgfw-header-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
}

.fgfw-header-bar-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.fgfw-header-bar-text {
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fgfw-header-bar .fgfw-progress {
    flex: 1 1 120px;
    margin-top: 0;
    background: rgba(255, 255, 255, .25);
}

.fgfw-header-bar .fgfw-progress-fill {
    background: #fff;
}

.fgfw-tiers {
    margin: 8px 0 40px;
    padding: 24px 40px 0;
}

.fgfw-tiers-track {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, .08);
    border-radius: 999px;
}

.fgfw-tiers-fill {
    display: block;
    height: 100%;
    background: var(--fgfw-accent, #7f54b3);
    border-radius: 999px;
    transition: width .4s ease;
}

.fgfw-tier {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.fgfw-tier-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, .15);
    border-radius: 50%;
    color: #999;
}

.fgfw-tier-dot svg {
    width: 18px;
    height: 18px;
}

.fgfw-tier-unlocked .fgfw-tier-dot {
    border-color: var(--fgfw-accent, #7f54b3);
    background: var(--fgfw-accent, #7f54b3);
    color: #fff;
}

.fgfw-tier-amount {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    font-size: .85em;
    white-space: nowrap;
}

.fgfw-offers-wrap {
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: var(--fgfw-radius, 8px);
    padding: 16px;
    background: #fff;
}

.fgfw-offer {
    margin-bottom: 16px;
}

.fgfw-offer:last-of-type {
    margin-bottom: 0;
}

.fgfw-offer-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.fgfw-offer-title {
    font-weight: 600;
}

.fgfw-offer-slots {
    font-size: .9em;
    color: var(--fgfw-accent, #7f54b3);
}

.fgfw-offer-complete {
    color: #1a7f37;
}

.fgfw-options {
    display: grid;
    gap: 12px;
}

.fgfw-style-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.fgfw-style-list {
    grid-template-columns: 1fr;
}

.fgfw-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: var(--fgfw-radius, 8px);
    padding: 12px;
    background: #fff;
}

.fgfw-style-list .fgfw-option {
    flex-direction: row;
    text-align: left;
}

.fgfw-style-list .fgfw-option-name {
    flex: 1;
}

.fgfw-option-added {
    border-color: var(--fgfw-accent, #7f54b3);
    box-shadow: 0 0 0 1px var(--fgfw-accent, #7f54b3);
}

.fgfw-option-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: calc(var(--fgfw-radius, 8px) / 2);
}

.fgfw-style-list .fgfw-option-image img {
    width: 56px;
    height: 56px;
}

.fgfw-option-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    color: var(--fgfw-accent, #7f54b3);
    background: color-mix(in srgb, var(--fgfw-accent, #7f54b3) 10%, #fff);
    border-radius: calc(var(--fgfw-radius, 8px) / 2);
}

.fgfw-option-name {
    font-weight: 500;
}

.fgfw-option-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.fgfw-option-link:hover,
.fgfw-option-link:focus {
    color: var(--fgfw-accent, #7f54b3);
    text-decoration: none;
}

.fgfw-option-image .fgfw-option-link,
.fgfw-option-noimage .fgfw-option-link {
    display: inline-flex;
}

.fgfw-option-price del {
    opacity: .6;
}

.fgfw-option-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #1a7f37;
    margin-left: 4px;
}

.fgfw-option-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.fgfw-style-list .fgfw-option-actions {
    align-items: flex-end;
}

.fgfw-added-label {
    color: #1a7f37;
    font-weight: 600;
}

.fgfw-remove {
    font-size: .85em;
    color: #b32d2e;
    text-decoration: underline;
}

.fgfw-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fgfw-style-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex: 1;
    padding-bottom: 6px;
}

.fgfw-style-carousel .fgfw-option {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

.fgfw-carousel-prev,
.fgfw-carousel-next {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    line-height: 1;
}

.fgfw-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fgfw-select {
    min-width: 220px;
    padding: 6px 10px;
    border-radius: var(--fgfw-radius, 8px);
}

.fgfw-dropdown-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fgfw-dropdown-preview[hidden],
.fgfw-dropdown-preview-img[hidden],
.fgfw-dropdown-preview-link[hidden],
.fgfw-dropdown-preview-name[hidden],
.fgfw-dropdown-preview-icon[hidden] {
    display: none;
}

.fgfw-dropdown-preview-link {
    display: inline-flex;
    text-decoration: none;
}

.fgfw-dropdown-preview-name {
    font-weight: 500;
}

.fgfw-dropdown-preview-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: calc(var(--fgfw-radius, 8px) / 2);
}

.fgfw-dropdown-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--fgfw-accent, #7f54b3);
    background: color-mix(in srgb, var(--fgfw-accent, #7f54b3) 10%, #fff);
    border-radius: calc(var(--fgfw-radius, 8px) / 2);
}

.fgfw-dropdown-preview-icon svg {
    width: 26px;
    height: 26px;
}

.fgfw-dropdown-preview-price del {
    opacity: .6;
}

.fgfw-dropdown-preview-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #1a7f37;
    margin-left: 4px;
}

.fgfw-selected-list {
    flex-basis: 100%;
    margin-top: 8px;
}

.fgfw-selected-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.fgfw-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.fgfw-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.fgfw-modal-dialog {
    position: relative;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 8vh auto 0;
    background: #fff;
    border-radius: var(--fgfw-radius, 8px);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.fgfw-modal-title {
    margin: 0 0 16px;
}

.fgfw-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.fgfw-decline-wrap {
    margin-top: 12px;
    text-align: right;
}

.fgfw-decline {
    font-size: .9em;
    color: inherit;
    opacity: .7;
    text-decoration: underline;
}

.fgfw-declined-note {
    padding: 10px 14px;
    border: 1px dashed rgba(0, 0, 0, .2);
    border-radius: var(--fgfw-radius, 8px);
    font-size: .95em;
}

.fgfw-cart-badge {
    display: inline-block;
    background: var(--fgfw-accent, #7f54b3);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.fgfw-free-price {
    color: #1a7f37;
    font-weight: 700;
}

.fgfw-gift-price del {
    opacity: .6;
}

.fgfw-gift-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #1a7f37;
    margin-left: 4px;
}

.fgfw-locked-wrap {
    margin-top: 16px;
    background: #fafafa;
}

.fgfw-lock-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.fgfw-lock-note .fgfw-lock-icon {
    flex: 0 0 auto;
}

.fgfw-option-locked {
    position: relative;
    background: #fafafa;
}

.fgfw-option-locked .fgfw-option-image img {
    filter: grayscale(60%);
    opacity: .75;
}

.fgfw-option-locked .fgfw-option-noimage {
    color: #999;
    background: rgba(0, 0, 0, .05);
}

.fgfw-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 50%;
}

.fgfw-lock-badge .fgfw-lock-icon {
    width: 12px;
    height: 12px;
}

.fgfw-gift-icon {
    display: inline-block;
    vertical-align: middle;
}

.fgfw-loading {
    opacity: .5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .fgfw-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fgfw-header-bar-text {
        white-space: normal;
        font-size: .85em;
    }

    .fgfw-tiers {
        padding: 24px 20px 0;
    }
}
