/**
 * MatKhau.vn - Product Specifications & Customer Fields Styling
 * Chuẩn thiết kế đồng bộ website: Full chiều rộng (width: 100%), Bo góc 0.4em
 * Version: 1.2.0
 */

/* ==========================================================================
   Admin Styling - Khung Thông số trong Tab Tổng Quan & Biến thể
   ========================================================================== */
#woocommerce-product-data .mks-general-specs-wrap {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 20px 0 10px 0 !important;
    padding: 20px 20px 15px 20px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

#woocommerce-product-data .mks-general-specs-wrap * {
    box-sizing: border-box !important;
}

#woocommerce-product-data .mks-general-specs-header {
    margin-bottom: 16px !important;
    clear: both !important;
}

#woocommerce-product-data .mks-general-specs-header h3 {
    margin: 0 0 6px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#woocommerce-product-data .mks-general-specs-header .mks-desc {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* 4 Ô thông số kỹ thuật (Grid) */
#woocommerce-product-data .mks-admin-specs-grid,
#woocommerce-product-data .mks-variation-specs-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 0 20px 0 !important;
    clear: both !important;
    width: 100% !important;
    float: none !important;
}

@media (max-width: 1200px) {
    #woocommerce-product-data .mks-admin-specs-grid,
    #woocommerce-product-data .mks-variation-specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    #woocommerce-product-data .mks-admin-specs-grid,
    #woocommerce-product-data .mks-variation-specs-grid {
        grid-template-columns: 1fr !important;
    }
}

#woocommerce-product-data .mks-admin-spec-field,
#woocommerce-product-data .mks-var-spec-col {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.4em !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Triệt tiêu triệt để float và width 150px mặc định của WooCommerce */
#woocommerce-product-data .mks-general-specs-wrap label,
#woocommerce-product-data .mks-admin-spec-field label,
#woocommerce-product-data .mks-var-spec-col label,
#woocommerce-product-data .mks-admin-note-block label,
#woocommerce-product-data .mks-var-note-block label {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #1e293b !important;
    text-align: left !important;
    line-height: 1.4 !important;
    clear: both !important;
}

#woocommerce-product-data .mks-admin-spec-field select,
#woocommerce-product-data .mks-admin-spec-field input[type="text"],
#woocommerce-product-data .mks-admin-spec-field input[type="url"],
#woocommerce-product-data .mks-var-spec-col select,
#woocommerce-product-data .mks-var-spec-col input[type="text"],
#woocommerce-product-data .mks-var-spec-col input[type="url"] {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 10px !important;
    border-radius: 0.4em !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    box-shadow: none !important;
    margin: 0 !important;
    clear: both !important;
}

#woocommerce-product-data .mks-admin-spec-field select:focus,
#woocommerce-product-data .mks-admin-spec-field input:focus,
#woocommerce-product-data .mks-var-spec-col select:focus,
#woocommerce-product-data .mks-var-spec-col input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px #2563eb !important;
    outline: none !important;
}

/* Khung Ghi chú sản phẩm nền vàng trong Admin */
#woocommerce-product-data .mks-admin-note-block,
#woocommerce-product-data .mks-var-note-block {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    background: #fefce8 !important;
    border: 1px solid #fef08a !important;
    border-left: 4px solid #eab308 !important;
    border-radius: 0.4em !important;
    padding: 14px 16px !important;
    margin: 0 0 22px 0 !important;
    box-sizing: border-box !important;
}

#woocommerce-product-data .mks-admin-note-block label,
#woocommerce-product-data .mks-var-note-block label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #854d0e !important;
    margin-bottom: 4px !important;
}

#woocommerce-product-data .mks-admin-note-block p,
#woocommerce-product-data .mks-var-note-block p {
    font-size: 12.5px !important;
    color: #a16207 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.5 !important;
    float: none !important;
    clear: both !important;
}

#woocommerce-product-data .mks-rich-editor-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    background: #fef9c3 !important;
    border: 1px solid #fde047 !important;
    border-radius: 0.4em 0.4em 0 0 !important;
    border-bottom: none !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
}

#woocommerce-product-data .mks-rich-editor-toolbar .button {
    font-size: 12px !important;
    padding: 0 10px !important;
    height: 28px !important;
    line-height: 26px !important;
    border-radius: 0.3em !important;
    background: #ffffff !important;
    color: #713f12 !important;
    border: 1px solid #fde047 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    float: none !important;
}

#woocommerce-product-data .mks-rich-editor-toolbar .button:hover {
    background: #fef08a !important;
    border-color: #eab308 !important;
    color: #451a03 !important;
}

#woocommerce-product-data textarea.mks-rich-textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px !important;
    border: 1px solid #fde047 !important;
    border-radius: 0 0 0.4em 0.4em !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
    clear: both !important;
}

/* Khung Bảng trường yêu cầu khách hàng cung cấp */
#woocommerce-product-data .mks-customer-fields-block {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.4em !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
}

#woocommerce-product-data .mks-customer-fields-header-toggle label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    float: none !important;
    width: auto !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    margin: 0 !important;
}

#woocommerce-product-data .mks-customer-fields-header-toggle input[type="checkbox"] {
    float: none !important;
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

#woocommerce-product-data .mks-customer-fields-table {
    margin-top: 10px !important;
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.4em !important;
    overflow: hidden !important;
}

#woocommerce-product-data .mks-customer-fields-table th {
    background: #f1f5f9 !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

#woocommerce-product-data .mks-customer-fields-table td {
    padding: 8px 10px !important;
    vertical-align: middle !important;
}

#woocommerce-product-data .mks-customer-fields-table input[type="text"],
#woocommerce-product-data .mks-customer-fields-table select {
    width: 100% !important;
    max-width: 100% !important;
    height: 34px !important;
    line-height: 32px !important;
    font-size: 13px !important;
    float: none !important;
    margin: 0 !important;
}

/* Variation specs box */
.mks-variation-specs-wrapper {
    margin: 14px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 0.4em;
    box-sizing: border-box;
}

.mks-variation-specs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mks-variation-specs-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mks-variation-specs-header .dashicons {
    color: #2563eb;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mks-variation-specs-note {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.mks-variation-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.mks-var-spec-col label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.mks-var-spec-col select,
.mks-var-spec-col input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px;
    border-radius: 0.4em;
    border: 1px solid #cbd5e1;
    padding: 5px 8px;
    box-sizing: border-box;
}

/* ==========================================================================
   Admin Customer Fields Repeater Styling
   ========================================================================== */
.mks-customer-fields-block {
    margin-top: 18px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 0.4em;
    box-sizing: border-box;
}

.mks-customer-fields-header-toggle {
    margin-bottom: 8px;
}

.mks-customer-fields-header-toggle label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mks-customer-fields-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
}

.mks-customer-fields-table {
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.4em;
    overflow: hidden;
}

.mks-customer-fields-table th {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 8px 10px;
}

.mks-customer-fields-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.mks-customer-fields-table input,
.mks-customer-fields-table select {
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 0.4em;
    border: 1px solid #cbd5e1;
}

.mks-add-customer-field-btn,
.mks-remove-field-btn {
    border-radius: 0.4em !important;
}

.mks-empty-fields-notice {
    padding: 12px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.4em;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

/* ==========================================================================
   Frontend Product Specs Styling
   ========================================================================== */
.mks-product-specs-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    margin: 16px 0 !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.4em !important;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

.mks-product-specs-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111827;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mks-product-specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mks-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
}

.mks-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mks-spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-weight: 500;
}

.mks-spec-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.mks-spec-value {
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.mks-spec-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 0.4em !important;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.mks-spec-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mks-spec-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.mks-specs-hidden {
    display: none !important;
}

.mks-spec-empty {
    display: none !important;
}

/* ==========================================================================
   Frontend Product Note Styling (Ô ghi chú sản phẩm nền vàng)
   Chuẩn: Full chiều rộng (width: 100%), bo góc 0.4em, dải nhấn vàng mật ong
   ========================================================================== */
.mks-product-note-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    margin: 16px 0 20px 0 !important;
    background: #fefce8 !important; /* Vàng nhạt dịu mắt */
    border: 1px solid #fef08a !important; /* Viền vàng dịu */
    border-left: 4px solid #eab308 !important; /* Dải nhấn vàng mật ong */
    border-radius: 0.4em !important;
    padding: 14px 18px !important;
    color: #713f12 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease-in-out !important;
}

.mks-product-note-container.mks-note-hidden {
    display: none !important;
}

.mks-product-note-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    color: #854d0e !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.mks-product-note-icon {
    color: #ca8a04 !important;
    flex-shrink: 0 !important;
}

.mks-product-note-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #713f12 !important;
    word-break: break-word !important;
}

.mks-product-note-content p {
    margin: 0 0 8px 0 !important;
    color: #713f12 !important;
}

.mks-product-note-content p:last-child {
    margin-bottom: 0 !important;
}

.mks-product-note-content strong,
.mks-product-note-content b {
    color: #451a03 !important;
    font-weight: 700 !important;
}

.mks-product-note-content em,
.mks-product-note-content i {
    font-style: italic !important;
}

.mks-product-note-content a {
    color: #b45309 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.mks-product-note-content a:hover {
    color: #78350f !important;
}

.mks-product-note-content ul,
.mks-product-note-content ol {
    margin: 6px 0 8px 20px !important;
    padding: 0 !important;
}

.mks-product-note-content li {
    margin-bottom: 4px !important;
}

/* ==========================================================================
   Frontend Customer Required Fields Styling (Bảng nhập thông tin khách hàng)
   Chuẩn: Full 100% chiều rộng, bo góc 0.4em, không đẩy lệch nút số lượng
   ========================================================================== */
form.cart,
form.variations_form,
form.cart.variations_form,
.woocommerce div.product form.cart,
.woocommerce div.product form.cart.variations_form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.single_variation_wrap,
.woocommerce div.product form.cart .single_variation_wrap {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.woocommerce-variation-add-to-cart {
    flex-wrap: wrap !important;
}

.mks-customer-fields-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    align-self: stretch !important;
    clear: both !important;
    box-sizing: border-box !important;
    margin: 16px 0 20px 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.4em !important;
    padding: 16px 18px !important;
}

.mks-customer-fields-container[style*="display: none"] {
    display: none !important;
}

.mks-customer-fields-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mks-customer-fields-title svg {
    color: #2563eb !important;
    flex-shrink: 0 !important;
}

.mks-customer-fields-body {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.mks-form-field-group {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.mks-field-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: block !important;
}

.mks-cf-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.4em !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.mks-cf-input:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.mks-cf-textarea {
    resize: vertical !important;
    min-height: 75px !important;
    line-height: 1.5 !important;
}

.mks-checkbox-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    margin: 4px 0 !important;
}

.mks-checkbox-item input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    border-radius: 0.4em !important;
    accent-color: #2563eb !important;
    cursor: pointer !important;
}

/* ==========================================================================
   Ẩn dải thông báo mặc định của WooCommerce ở đầu trang
   (Thay thế hoàn toàn bằng Toast Notification góc trên bên phải)
   ========================================================================== */
.woocommerce-notices-wrapper > .woocommerce-error,
.woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-notices-wrapper > .woocommerce-info,
.woocommerce > .woocommerce-error,
.woocommerce > .woocommerce-message,
.woocommerce > .woocommerce-info,
div.woocommerce-error,
ul.woocommerce-error {
    display: none !important;
}

/* ==========================================================================
   Thông báo lỗi trực tiếp tại chỗ (Inline Field Validation)
   ========================================================================== */
.mks-form-field-group.mks-has-error .mks-cf-input {
    border-color: #ef4444 !important;
    background-color: #fffaf0 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: mksFieldShake 0.4s ease-in-out !important;
}

.mks-form-field-group.mks-has-error .mks-checkbox-item {
    color: #ef4444 !important;
    animation: mksFieldShake 0.4s ease-in-out !important;
}

.mks-inline-error-msg {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #ef4444 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
    animation: mksFadeInDown 0.25s ease !important;
}

.mks-inline-error-msg svg {
    flex-shrink: 0 !important;
    color: #ef4444 !important;
}

@keyframes mksFieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@keyframes mksFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Toast Notification Styling (Góc trên bên phải, bo góc 0.4em, tự tắt sau vài giây)
   ========================================================================== */
.mks-toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 400px !important;
    width: calc(100vw - 48px) !important;
    pointer-events: none !important;
}

.mks-toast-item {
    position: relative !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    border-radius: 0.4em !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    border-left-width: 5px !important;
    overflow: hidden !important;
    transform: translateX(120%) !important;
    opacity: 0 !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
    padding: 14px 16px 16px 14px !important;
}

.mks-toast-item.mks-toast-show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.mks-toast-item.mks-toast-hide {
    transform: translateX(120%) !important;
    opacity: 0 !important;
}

/* Phân loại màu sắc Toast */
.mks-toast-item.mks-toast-error {
    border-left-color: #ef4444 !important;
}
.mks-toast-item.mks-toast-error .mks-toast-icon {
    color: #ef4444 !important;
}
.mks-toast-item.mks-toast-error .mks-toast-progress-bar {
    background: #ef4444 !important;
}

.mks-toast-item.mks-toast-success {
    border-left-color: #10b981 !important;
}
.mks-toast-item.mks-toast-success .mks-toast-icon {
    color: #10b981 !important;
}
.mks-toast-item.mks-toast-success .mks-toast-progress-bar {
    background: #10b981 !important;
}

.mks-toast-item.mks-toast-info {
    border-left-color: #3b82f6 !important;
}
.mks-toast-item.mks-toast-info .mks-toast-icon {
    color: #3b82f6 !important;
}
.mks-toast-item.mks-toast-info .mks-toast-progress-bar {
    background: #3b82f6 !important;
}

.mks-toast-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-right: 22px !important;
}

.mks-toast-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.mks-toast-message {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    word-break: break-word !important;
}

.mks-toast-message strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.mks-toast-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    border-radius: 0.4em !important;
    transition: color 0.15s ease !important;
}

.mks-toast-close:hover {
    color: #334155 !important;
}

.mks-toast-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.mks-toast-progress-bar {
    height: 100% !important;
    width: 100% !important;
}

@media (max-width: 480px) {
    .mks-toast-container {
        top: 16px !important;
        right: 16px !important;
        left: 16px !important;
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }
}
