.twistify-card {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    background: #fff;
}

.twistify-block-editor-card {
    border: 1px dashed #b5bcc3;
    border-radius: 8px;
    padding: 16px;
}

.twistify-help,
.twistify-rate-note {
    color: #52525b;
    font-size: 13px;
    margin-top: 4px;
}

.twistify-field {
    margin: 10px 0;
}

.twistify-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.twistify-field input,
.twistify-field select {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #bfc5cc;
    border-radius: 6px;
}

.twistify-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.twistify-country-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    max-height: 220px;
    overflow: auto;
}

.twistify-country-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.twistify-country-item input {
    width: auto;
}

.twistify-actions {
    margin-top: 10px;
}

.twistify-btn {
    appearance: none;
    border: 1px solid #0f4c81;
    background: #0f4c81;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.twistify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.twistify-message {
    margin-top: 10px;
    font-size: 13px;
}

.twistify-error {
    color: #b91c1c;
}

.twistify-results {
    margin-top: 14px;
    overflow-x: auto;
}

.twistify-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.twistify-table th,
.twistify-table td {
    border: 1px solid #dbe2ea;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.twistify-table th {
    background: #f6f8fa;
}

.twistify-table tr.is-meta-different {
    background: #fff7ed;
}

.twistify-favicon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
}

@media (max-width: 960px) {
    .twistify-grid-3 {
        grid-template-columns: 1fr;
    }

    .twistify-country-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
