.gwe-configurator {
    max-width: 960px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: var(--gwe-radius, 12px);
    border: 1px solid var(--gwe-border, #D1D5DB);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-family: var(--gwe-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
    position: relative;
    color: #334155;
}

.gwe-header {
    background: linear-gradient(135deg, var(--gwe-gradient-start, #04a0f8) 0%, var(--gwe-gradient-end, #14276d) 100%);
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.gwe-tier-name { font-size: 20px; font-weight: 600; color: #fff; margin: 0; }
.gwe-tier-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.gwe-header-right { text-align: right; }
.gwe-total-price { font-size: 28px; font-weight: 800; color: #fff; }
.gwe-total-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.gwe-description {
    padding: 14px 24px;
    font-size: 13px;
    color: var(--gwe-desc, #555);
    background: #fafbfc;
    border-bottom: 1px solid var(--gwe-border, #D1D5DB);
    line-height: 1.5;
}
.gwe-description p { margin: 0; }

.gwe-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) { .gwe-panels { grid-template-columns: 1fr; } }

.gwe-panel { padding: 20px 18px; }
.gwe-panel-preset { border-right: 1px solid var(--gwe-border, #D1D5DB); }
@media (max-width: 700px) { .gwe-panel-preset { border-right: none; border-bottom: 1px solid var(--gwe-border, #D1D5DB); } }

.gwe-panel-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gwe-dot { width: 10px; height: 10px; border-radius: 99px; flex-shrink: 0; }
.gwe-dot-green { background: var(--gwe-accent, #046bd2); }
.gwe-dot-blue { background: var(--gwe-gradient-end, #045cb4); }
.gwe-panel-header h3 { font-size: var(--gwe-fs-heading, 14px); font-weight: 600; margin: 0; color: var(--gwe-heading, #1e293b); }
.gwe-panel-desc { font-size: var(--gwe-fs-desc, 12px); color: var(--gwe-desc, #718096); margin-bottom: 14px; }

.gwe-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.gwe-item-preset { background: var(--gwe-preset-bg, #F0F5FA); }
.gwe-item-preset.gwe-item-zero { background: #fafafa; opacity: 0.45; }
.gwe-item-addon { background: #fafafa; cursor: pointer; }
.gwe-item-addon:hover { border-color: var(--gwe-border, #D1D5DB); }
.gwe-item-addon.gwe-item-selected { background: var(--gwe-addon-sel-bg, #e8f0fe); border-color: var(--gwe-accent, #046bd2); }

.gwe-item-checkbox {
    width: 18px; height: 18px;
    accent-color: var(--gwe-accent, #046bd2);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.gwe-item-image {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--gwe-border, #D1D5DB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1;
}
.gwe-item-image:hover {
    transform: scale(2);
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.gwe-item-image img { width: 100%; height: 100%; object-fit: cover; }
.gwe-item-image .gwe-placeholder { font-size: 22px; }

.gwe-item-info { flex: 1; min-width: 0; }
.gwe-item-name { font-size: var(--gwe-fs-name, 13px); font-weight: 600; color: var(--gwe-item-name, #1e293b); line-height: 1.3; }
.gwe-item-sku { font-size: 10px; color: #94a3b8; margin-top: 1px; font-family: monospace; letter-spacing: 0.3px; }
.gwe-item-desc { font-size: var(--gwe-fs-desc, 11px); color: var(--gwe-item-desc, #718096); margin-top: 2px; }

.gwe-item-controls { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }

.gwe-qty-control {
    display: flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid var(--gwe-border, #D1D5DB);
    overflow: hidden;
}
.gwe-qty-btn {
    width: 30px; height: 30px;
    border: none; background: var(--gwe-preset-bg, #F0F5FA);
    cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    color: #334155;
}
.gwe-qty-btn:hover { background: #e2e8f0; }
.gwe-qty-val {
    width: 34px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    background: #fff;
    border-left: 1px solid var(--gwe-border, #D1D5DB);
    border-right: 1px solid var(--gwe-border, #D1D5DB);
    color: var(--gwe-item-name, #1e293b);
}

.gwe-cadence-select {
    padding: 5px 24px 5px 8px;
    border-radius: 4px;
    border: 1px solid var(--gwe-border, #D1D5DB);
    font-size: 11px;
    color: #334155;
    cursor: pointer;
    outline: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23334155'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.gwe-cadence-select:focus {
    border-color: var(--gwe-accent, #046bd2);
}

.gwe-footer {
    border-top: 1px solid var(--gwe-border, #D1D5DB);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--gwe-footer-bg, #F0F5FA);
}
.gwe-footer-info { font-size: var(--gwe-fs-footer, 13px); color: #334155; font-weight: 500; }
.gwe-min-warning { font-size: 12px; color: #cf2e2e; margin-top: 4px; }
.gwe-footer-right { display: flex; align-items: center; gap: 16px; }
.gwe-footer-price { font-size: 22px; font-weight: 800; color: var(--gwe-heading, #1e293b); }
.gwe-footer-label { font-size: 11px; color: var(--gwe-desc, #718096); }

.gwe-add-to-cart-btn {
    padding: 13px 30px;
    border-radius: var(--gwe-btn-radius, 30px);
    border: none;
    background: linear-gradient(135deg, var(--gwe-gradient-start, #04a0f8) 0%, var(--gwe-gradient-end, #14276d) 100%);
    color: var(--gwe-btn-text, #fff);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
}
.gwe-add-to-cart-btn:hover {
    box-shadow: 0 0 20px 2px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}
.gwe-add-to-cart-btn:disabled {
    background: var(--gwe-border, #D1D5DB);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.gwe-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    z-index: 10;
}
.gwe-spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--gwe-border, #D1D5DB);
    border-top-color: var(--gwe-accent, #046bd2);
    border-radius: 50%;
    animation: gwe-spin 0.6s linear infinite;
}
@keyframes gwe-spin { to { transform: rotate(360deg); } }

.gwe-category-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gwe-accent, #046bd2);
    padding: 12px 14px 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gwe-category-header:hover { opacity: 0.8; }
.gwe-category-toggle {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}

.gwe-cart-section { line-height: 1.8; }

.gwe-credit {
    text-align: center;
    padding: 6px 0;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}
.gwe-credit a {
    font-size: 9px;
    color: #c0c0c0;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.gwe-credit a:hover { color: #999; }
