* {
    box-sizing: border-box;
}

.stwg-plugin {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    font-family: Inter, Arial, sans-serif;
    color: #111;
}

.stwg-layout {
    display: grid;
    grid-template-columns: minmax(320px, 34%) minmax(460px, 1fr);
    gap: 24px;
    align-items: stretch;
    background: #ffffff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.stwg-form-panel,
.stwg-wheel-panel {
    background: #f8f8fb;
    border: 3px solid #ff4b3e;
    border-radius: 22px;
    padding: 24px;
    min-height: 620px;
}

.stwg-wheel-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.stwg-section-bar {
    margin: -24px -24px 22px;
    padding: 10px 14px;
    background: #dfe3e8;
    border-radius: 18px 18px 0 0;
    font-size: 15px;
    font-weight: 900;
    color: #111;
    border-bottom: 1px solid #cfd5dc;
}

.stwg-form-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

.stwg-form-panel p {
    margin: 0 0 24px;
    color: #555;
}

.stwg-form-panel label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 800;
}

.stwg-form-panel input {
    width: 100%;
    border: 2px solid #dedee8;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    background: #fff;
}

.stwg-form-panel input::placeholder {
    color: #9aa3af;
    font-weight: 700;
}

.stwg-form-panel input:focus {
    border-color: #ff1a1a;
}

.stwg-options-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#stwg-add-option {
    border: none;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
}

#stwg-options {
    display: grid;
    gap: 10px;
}

.stwg-option-row {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    align-items: center;
}

.stwg-delete-option {
    height: 42px;
    width: 42px;
    border: none;
    border-radius: 12px;
    background: #ffe7e7;
    color: #d60000;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.stwg-delete-option:hover {
    background: #ffd2d2;
}

#stwg-generate,
#stwg-download,
#stwg-paypal-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

#stwg-generate {
    margin-top: 22px;
    background: #ff1a1a;
    color: #fff;
}

#stwg-download {
    margin-top: 20px;
    background: #0a7cff;
    color: #fff;
}

#stwg-paypal-btn {
    margin-top: 16px;
    background: #ffc439;
    color: #111;
}

.stwg-note {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

#stwg-preview-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stwg-canvas {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    background: #fff;
    border-radius: 20px;
}

#stwg-lock {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.56);
    border-radius: 0 20px 20px 0;
    border-left: 2px solid rgba(255,255,255,0.75);
}

#stwg-lock > div {
    max-width: 320px;
    background: rgba(255,255,255,0.95);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

#stwg-lock strong {
    display: block;
    font-size: 24px;
}

#stwg-lock span {
    display: block;
    margin-top: 8px;
    color: #555;
}

.stwg-hidden {
    display: none !important;
}

@media (max-width: 760px) {
    .stwg-layout {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .stwg-form-panel,
    .stwg-wheel-panel {
        width: 100%;
        min-height: auto;
    }

    #stwg-preview-wrap {
        min-height: 420px;
    }
}