.cqr-wrapper {
    direction: rtl;
    background: #f8fafc;
    padding: 24px;
    --primary: var(--wp--preset--color--primary, #2563eb);
    --radius: 12px;
    color: inherit;
    font-family: inherit;
}
.cqr-wrapper i {
    margin-left: 6px;
    color: var(--primary);
    font-size: 0.95em;
}

/* Layout */
.cqr-wrapper .container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
}

.cqr-wrapper .control-section,
.cqr-wrapper .qr-section {
    border: 1px solid #e5e7eb;
    transition: box-shadow .3s ease;
}

.cqr-wrapper .control-section:hover,
.cqr-wrapper .qr-section:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}


/* Titles */
.cqr-wrapper h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Inputs */
.cqr-wrapper label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.cqr-wrapper input,
.cqr-wrapper button {
    width: 100%;
}

.cqr-wrapper input[type="text"],
.cqr-wrapper input[type="number"],
.cqr-wrapper input[type="file"],
.cqr-wrapper input[type="color"] {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: .3s;
}
input[type=color] {
    width: 100% !important;
    padding: 0 !important;
    height: 35px;
    cursor: pointer;
    border: 1px solid #cbcbcb ! IMPORTANT;
    margin: 7px;
}
.cqr-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Tabs */
.cqr-wrapper .tab-header {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--radius);
}

.cqr-wrapper .tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.cqr-wrapper .tab-button.active {
    background: var(--primary);
    color: #fff;
}

.cqr-wrapper .tab-content {
    display: none;
    margin-top: 16px;
}

.cqr-wrapper .tab-content.active {
    display: block;
}

/* Radios */
.cqr-wrapper .radio-group {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.cqr-wrapper .radio-item {
    border: 2px solid #e2e8f0;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* QR */
.cqr-wrapper #qrcode-preview {
    min-height: 320px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.cqr-wrapper .button {
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.cqr-wrapper .button:hover {
    background: var(--primary);
    color: #fff;
}

/* Alerts */
.cqr-wrapper .cqr-alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: none;
}
.tab-header button {
    color: #000;
}
.download-buttons button {
    color: #3760e8 !important;
}
.download-buttons button:hover {
    color: #fff;
}
/* Responsive */
@media (max-width: 900px) {
    .cqr-wrapper .container {
        grid-template-columns: 1fr;
    }
    .cqr-wrapper .qr-section {
        position: static;
    }
}
