#ttc-convert-box {
    max-width: 520px;
    margin: 30px auto;
    background: var(--wp--preset--color--background, #ffffff);
    border: 1px solid var(--wp--preset--color--border, #cbd5e1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-family: inherit;
    color: inherit;
    overflow: hidden;
}

/* Tiêu đề sạch sẽ, căn giữa tuyệt đối, không bị theme chèn icon */
.ttc-box-title {
    text-align: center !important;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
    margin: 0 -20px 20px -20px;
    padding: 0 20px 15px 20px;
    color: var(--wp--preset--color--primary, #0f766e);
    border-bottom: 1px solid var(--wp--preset--color--border, #e2e8f0);
    font-family: inherit;
    letter-spacing: 0.5px;
    display: block !important;
    background: transparent !important;
}

/* Triệt tiêu mọi icon thừa nếu theme lỡ gán vào */
.ttc-box-title::before, 
.ttc-box-title::after {
    display: none !important;
    content: none !important;
}

/* Body */
#ttc-convert-box .ttc-body {
    padding: 20px;
}

.ttc-field {
    margin-bottom: 16px;
}

.ttc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: inherit;
}

/* Ô Nhập Tiền & Nút Xóa */
.ttc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#tien_thanh_chu_amount {
    width: 100%;
    height: 40px;
    padding: 6px 36px 6px 12px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--wp--preset--color--background, #fff);
    color: inherit;
    border: 1px solid var(--wp--preset--color--border, #cbd5e1);
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#tien_thanh_chu_amount:focus {
    border-color: var(--wp--preset--color--primary, #2271b1);
    box-shadow: 0 0 0 1px var(--wp--preset--color--primary, #2271b1);
}

#ttc_clear_btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #787c82;
    font-size: 18px;
    cursor: pointer;
    display: none;
    padding: 0 4px;
}

#ttc_clear_btn:hover {
    color: #d63638;
}

/* Nút Bấm Chuyển Đổi */
#tien_thanh_chu_convert_btn {
    width: 100%;
    height: 40px;
    background-color: var(--wp--preset--color--primary, #2271b1);
    color: var(--wp--preset--color--background, #ffffff);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

#tien_thanh_chu_convert_btn:hover {
    opacity: 0.9;
}

#tien_thanh_chu_convert_btn:active {
    transform: translateY(1px);
}

/* Thông Báo */
#tien_thanh_chu_message {
    min-height: 18px;
    margin: 6px 0;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

#tien_thanh_chu_message.error { color: #d63638; }
#tien_thanh_chu_message.success { color: #008a20; }

/* Ô Kết Quả & Nút Copy */
.ttc-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

#ttc_copy_btn {
    background: transparent;
    border: 1px solid var(--wp--preset--color--border, #8c8f94);
    color: inherit;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: all 0.2s;
}

#ttc_copy_btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

#ttc_copy_btn.copied {
    background: #edf7ed;
    color: #1e4620;
    border-color: #c3e6cb;
}

#tien_thanh_chu_result {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    background-color: var(--wp--preset--color--background, #f6f7f7);
    color: inherit;
    border: 1px solid var(--wp--preset--color--border, #dcdcde);
    border-radius: 4px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    font-weight: 500;
}