/* ===================================================================
   STORE SETTINGS LAYOUT
=================================================================== */

.smt-settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    margin-top: 24px;
}

@media (max-width: 1100px) {
    .smt-settings-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   LEFT NAVIGATION
=================================================================== */

.smt-settings-nav {
    padding: 16px 0;
}

.smt-settings-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smt-settings-nav li {
    margin: 0;
}

.smt-settings-nav a {
    display: block;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all .25s ease;
    border-left: 4px solid transparent;
}

.smt-settings-nav a:hover {
    background: #f3f4fb;
}

.smt-settings-nav a.active {
    background: #eef0ff;
    border-left-color: #5e5df0;
    color: #5e5df0;
    font-weight: 600;
}
/* ===================================================================
   TABS CONTENT
=================================================================== */

.smt-settings-content {
    min-height: 400px;
}

.smt-settings-tab {
    display: none;
}

.smt-settings-tab.active {
    display: block;
}
/* ===================================================================
   ASSETS GRID
=================================================================== */

.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;
}
/* ===================================================================
   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);
}

.smt-card .button {
    border-radius: 10px !important;
}

/* ===================================================================
   SAVE SETTINGS ACTION
=================================================================== */

.smt-settings-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e2ea;
    text-align: center;
}

.smt-save-btn {
    min-width: 180px;
    height: 44px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px !important;
    padding: 0 26px !important;
    box-shadow: 0 4px 12px rgba(94, 93, 240, 0.35);
    transition: all .25s ease;
}

/* Hover */
.smt-save-btn:hover {
    box-shadow: 0 6px 18px rgba(94, 93, 240, 0.45);
    transform: translateY(-1px);
}

/* Active */
.smt-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(94, 93, 240, 0.35);
}

/* Disabled / loading */
.smt-save-btn:disabled,
.smt-save-btn.smt-loading {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}


/* ===================================================================
   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;
}

.smt-cf-delete-btn {
	color: #c62828 !important;
	border-color: #e57373 !important;
}

.smt-cf-delete-btn:hover {
	background: #ffebee !important;
}
