.smt-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .smt-assets-grid {
        grid-template-columns: 1fr;
    }
}

.smt-assets-grid h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

#smt-assets-styles-list,
#smt-assets-scripts-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    padding: 12px;
    background: #fafafb;
}

label.smt-asset-row {
    display: block;
}
/* ===================================================================
   INLINE BLOCKS
=================================================================== */

.smt-inline-block {
    margin-bottom: 24px;
}

.smt-inline-block h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.smt-inline-block textarea {
    background: #fafafb;
    border-radius: 10px;
}
/* ===================================================================
   CLEANUP GROUPS
=================================================================== */

.smt-cleanup-group {
    margin-bottom: 22px;
}

.smt-cleanup-group h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.smt-cleanup-group label {
    font-size: 14px;
}

.smt-badge-toggle .smt-inline-switch-row,
.smt-shop-block .smt-inline-switch-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.smt-badge-toggle .smt-inline-switch-row {
    margin-bottom: 0;
}

.smt-shop-block .smt-inline-switch-row {
    cursor: pointer;
}
/* ===================================================================
   BADGES
=================================================================== */
.smt-badge-block {
    padding: 14px 0;
}

.smt-badge-block h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

/* ----------------------------------------------------------
   TOGGLE (Enable)
---------------------------------------------------------- */

.smt-badge-toggle {
    margin-bottom: 10px;
}

.smt-badge-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* ----------------------------------------------------------
   SETTINGS ROW
---------------------------------------------------------- */

.smt-badge-settings-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Compact input */

.smt-badge-input {
    border-radius: 8px;
    border: 1px solid #d2d2d8;
    background: #f9f9fb;
    padding: 6px 12px;
    font-size: 14px;
    min-width: 220px;
    transition: all 0.2s ease;
}

.smt-badge-input:focus {
    border-color: #5e5df0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(94,93,240,0.15);
}

/* SVG checkbox */

.smt-badge-settings-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

/* ----------------------------------------------------------
   EXTRA SETTINGS (days / limit)
---------------------------------------------------------- */

.smt-badge-extra {
    margin: 8px 0 18px 0;
    padding-left: 4px;
}

.smt-badge-extra input[type="number"] {
    border-radius: 8px;
    border: 1px solid #d2d2d8;
    background: #f9f9fb;
    padding: 6px 10px;
    width: 100px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.smt-badge-extra input[type="number"]:focus {
    border-color: #5e5df0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(94,93,240,0.15);
}

/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */

@media (max-width: 768px) {

    .smt-badge-settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .smt-badge-input {
        width: 100%;
    }
}
/* ===================================================================
   CHECKOUT TABLE
=================================================================== */

.smt-checkout-table {
    border-radius: 12px;
    overflow: hidden;
}

.smt-checkout-table th {
    background: #f5f6fa;
    font-weight: 600;
}

.smt-checkout-table td,
.smt-checkout-table th {
    vertical-align: middle;
}

.smt-checkout-table input[type="text"],
.smt-checkout-table input[type="number"] {
    width: 100%;
    border-radius: 8px;
}
/* ===================================================================
   FORMS
=================================================================== */

.smt-card input[type="text"],
.smt-card input[type="number"],
.smt-card textarea {
    border: 1px solid #e2e2ea;
    transition: border-color .2s ease;
}

.smt-card input:focus,
.smt-card textarea:focus {
    border-color: #5e5df0;
    box-shadow: 0 0 0 2px rgba(94,93,240,0.15);
}

/* ===================================================================
   CUSTOM FIELDS TAB
=================================================================== */

.smt-cf-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	margin-bottom: 6px;
	background: #fafafa;
	border: 1px solid #e5e5ec;
	border-radius: 8px;
}

.smt-cf-row:hover {
	background: #f4f4fb;
	border-color: #c9c9e0;
}

.smt-cf-row-info {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.smt-cf-row-info strong {
	font-size: 14px;
	font-weight: 600;
}

.smt-cf-row-info code {
	background: #eee;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
}

.smt-cf-row-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

/* ===================================================================
   ATTRIBUTE BADGE - select fields
=================================================================== */

.smt-attr-select,
.smt-attr-value-select {
    min-width: 220px;
    border-radius: 8px;
    border: 1px solid #d2d2d8;
    background: #f9f9fb;
    padding: 7px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.smt-attr-select:focus,
.smt-attr-value-select:focus {
    border-color: #5e5df0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(94,93,240,0.15);
    outline: none;
}

/* ===================================================================
   SHOP TAB
=================================================================== */

.smt-shop-block {
    padding: 16px 0;
}

.smt-shop-block h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.smt-shop-block .description {
    margin: 0 0 12px;
    color: #667085;
    font-size: 13px;
}

.smt-shop-block p label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Popup page checkboxes */
.smt-popup-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 16px;
}

.smt-popup-pages label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Popup button grid */
.smt-popup-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

.smt-popup-config {
    padding: 16px 0 0;
}

@media (max-width: 782px) {
    .smt-popup-buttons-grid {
        grid-template-columns: 1fr;
    }
}
